-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move school placements into its own view
Currently, school placements are listed on course pages, which can be problematic for candidates as there is quite a lot of content on this page. We want to move this information to a separate page.
- Loading branch information
1 parent
edf18bc
commit 3394c2b
Showing
18 changed files
with
237 additions
and
17 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
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%= content_for :page_title do %> | ||
<%= t( | ||
"find.courses.placements.heading", | ||
provider_name: @course.provider_name | ||
) %> | ||
<% end %> | ||
<% content_for :before_content do %> | ||
<%= govuk_back_link( | ||
href: search_ui_course_page_url( | ||
provider_code: @course.provider_code, | ||
course_code: @course.course_code | ||
), | ||
text: t( | ||
"find.courses.placements.back", | ||
course_name: @course.name, | ||
course_code: @course.course_code | ||
) | ||
) %> | ||
<% end %> | ||
|
||
<%= render partial: "shared/courses/placements", locals: { course: @course } %> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<%= content_for :page_title do %> | ||
<%= t( | ||
"publish.providers.courses.placements.heading", | ||
provider_name: course.provider_name | ||
) %> | ||
<% end %> | ||
<% content_for :before_content do %> | ||
<%= govuk_back_link( | ||
href: preview_publish_provider_recruitment_cycle_course_path( | ||
course.provider_code, | ||
course.recruitment_cycle_year, | ||
course.course_code | ||
), | ||
text: t( | ||
"publish.providers.courses.placements.back", | ||
course_name: course.name, | ||
course_code: course.course_code | ||
) | ||
) %> | ||
<% end %> | ||
|
||
<%= render partial: "shared/courses/placements", locals: { course: } %> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<h1 class="govuk-heading-xl"> | ||
<%= t(".heading", provider_name: course.provider_name) %> | ||
</h1> | ||
|
||
<%= govuk_warning_text(text: t(".warning")) %> | ||
|
||
<p class="govuk-body"> | ||
<%= t(".will_place_you", provider_name: course.provider_name) %> | ||
</p> | ||
|
||
<p class="govuk-body"><%= t(".schools_to_be_placed") %></p> | ||
|
||
<ul class="govuk-list govuk-list--spaced" id="course_school_placements"> | ||
<% course.preview_site_statuses.each do |site_status| %> | ||
<li> | ||
<strong><%= smart_quotes(site_status.site.location_name) %></strong> | ||
<br> | ||
<%= smart_quotes(site_status.site.decorate.full_address) %> | ||
</li> | ||
<% end %> | ||
</ul> |
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
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
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
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
Oops, something went wrong.