Skip to content

Commit

Permalink
Reorder course page sections
Browse files Browse the repository at this point in the history
  • Loading branch information
kelliedesigner authored and dcyoung-dev committed Sep 6, 2024
1 parent c11462b commit 67dd52b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/find/courses/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
Contents
</h3>
<ul class="govuk-list app-list--dash course-contents govuk-!-margin-bottom-8">
<li><a class="govuk-link" href="#section-about">About the course</a></li>
<li><a class="govuk-link" href="#training-locations">Where you will train</a></li>
<% if @course.salaried? %>
<li><a class="govuk-link" href="#section-salary">Salary</a></li>
<% end %>
<li><a class="govuk-link" href="#section-financial-support">Fees and financial support</a></li>
<li><a class="govuk-link" href="#training-locations">Where you will train</a></li>
<li><a class="govuk-link" href="#section-about">About the course</a></li>
<% if @course.published_interview_process.present? %>
<li><a class="govuk-link" href="#section-interviews">Interview process</a></li>
<% end %>
Expand All @@ -52,17 +52,17 @@
<li><a class="govuk-link" href="#section-apply">Apply</a></li>
</ul>

<% if @course.published_about_course.present? %>
<%= render partial: "find/courses/about_course", locals: { course: @course } %>
<% end %>
<%= render Find::Courses::AboutSchoolsComponent::View.new(@course, preview: preview?(params), filters_view: @filters_view) %>

<% if @course.salaried? %>
<%= render partial: "find/courses/salary", locals: { course: @course } %>
<% end %>

<%= render Shared::Courses::FinancialSupport::FeesAndFinancialSupportComponent::View.new(@course) %>

<%= render Find::Courses::AboutSchoolsComponent::View.new(@course, preview: preview?(params), filters_view: @filters_view) %>
<% if @course.published_about_course.present? %>
<%= render partial: "find/courses/about_course", locals: { course: @course } %>
<% end %>

<% if @course.published_interview_process.present? %>
<%= render partial: "find/courses/interview_process", locals: { course: @course } %>
Expand Down

0 comments on commit 67dd52b

Please sign in to comment.