-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update controller and view to use new year group step
- Loading branch information
Showing
4 changed files
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
app/views/placements/schools/placements/build/add_year_group.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<% content_for :page_title, @placement.errors.any? ? t(".title_with_error") : t(".title") %> | ||
<%= render "placements/schools/primary_navigation", school: @school, current_navigation: :placements %> | ||
<% content_for :page_title, @current_step.errors.any? ? t(".title_with_error") : t(".title") %> | ||
<%= render "placements/schools/primary_navigation", school: @current_step.school, current_navigation: :placements %> | ||
|
||
<%= content_for(:before_content) do %> | ||
<%= govuk_back_link(href: @previous_step) %> | ||
<% end %> | ||
|
||
<div class="govuk-width-container"> | ||
<%= form_for(@placement, url: placements_school_placement_build_path(@school, id: :add_year_group), method: :put) do |f| %> | ||
<%= form_for(@current_step, url: placements_school_placement_build_path(@current_step.school, id: :add_year_group), method: :put) do |f| %> | ||
<%= f.govuk_error_summary %> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<span class="govuk-caption-l"><%= t(".add_placement") %></span> | ||
<%= f.govuk_collection_radio_buttons :year_group, @year_groups_for_select, :value, :name, :description, legend: { size: "l", text: t(".year_group") } %> | ||
<%= f.govuk_collection_radio_buttons :year_group, @current_step.year_groups_for_selection, :value, :name, :description, legend: { size: "l", text: t(".year_group") } %> | ||
|
||
<%= f.govuk_submit t(".continue") %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<p class="govuk-body"> | ||
<%= govuk_link_to(t(".cancel"), placements_school_placements_path(@school), no_visited_state: true) %> | ||
<%= govuk_link_to(t(".cancel"), placements_school_placements_path(@current_step.school), no_visited_state: true) %> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters