Skip to content

Commit

Permalink
Merge pull request #64 from DFE-Digital/fix-success-page
Browse files Browse the repository at this point in the history
Remove title and render teacher name when recording outcome
  • Loading branch information
edujackedu authored Jan 22, 2025
2 parents d0baf1c + d03ec3a commit 48dc902
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<% page_data(title: "Success") %>

<%= govuk_panel(
title_text: "Success",
text: "You have recorded a failing outcome for #{@teacher_name}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

<%= form_with(model: @pending_induction_submission, url: ab_teacher_record_passed_outcome_path(@teacher), method: 'post') do |f| %>
<%= render partial: 'appropriate_bodies/teachers/outcome_form', locals: { f: f } %>
<%= f.govuk_submit "Record passing outcome for #{Teachers::Name.new(@teacher).full_name}" %>
<%= f.govuk_submit "Record pass outcome for #{Teachers::Name.new(@teacher).full_name}" %>
<% end %>
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<% page_data(title: "Success") %>

<%= govuk_panel(
title_text: "Success",
text: "You have recorded a passing outcome for #{Teachers::Name.new(@teacher).full_name}"
text: "You have recorded a pass outcome for #{@teacher_name}"
) %>

<%= govuk_button_link_to("Return to the homepage", ab_teachers_path, secondary: true) %>
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def and_i_enter_a_terms_value_of(number)

def and_i_click_submit
teacher_name = Teachers::Name.new(teacher).full_name
page.get_by_role('button', name: "Record passing outcome for #{teacher_name}").click
page.get_by_role('button', name: "Record pass outcome for #{teacher_name}").click
end

def then_i_should_be_on_the_success_page
Expand Down

0 comments on commit 48dc902

Please sign in to comment.