Skip to content

Commit

Permalink
Merge pull request #4320 from DFE-Digital/cv/redesign-entry-requirements
Browse files Browse the repository at this point in the history
Change the content of the course view
  • Loading branch information
CatalinVoineag authored Jul 1, 2024
2 parents de2d814 + b923f66 commit edf18bc
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<h2 class="govuk-heading-m">Contents</h2>
<ul class="govuk-list app-list--dash course-contents govuk-!-margin-bottom-8">
<li><%= govuk_link_to "Entry requirements", "#section-entry" %></li>
<% if about_course.present? || preview? %>
<li><%= govuk_link_to "Course summary", "#section-about" %></li>
<% end %>
<% if how_school_placements_work.present? || program_type == "higher_education_programme" || program_type == "scitt_programme" || preview? %>
<li><%= govuk_link_to "Training locations", "#training-locations" %></li>
<% end %>
<li><%= govuk_link_to "Entry requirements", "#section-entry" %></li>
<% if provider.train_with_us.present? || about_accrediting_provider.present? || preview? %>
<li><%= govuk_link_to "About the training provider", "#section-about-provider" %></li>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,27 @@
<%= helpers.markdown(course.additional_gcse_equivalencies) %>
</p>
<% end %>
</div>

<% if course.personal_qualities.present? %>
<h3 class="govuk-heading-m">Personal qualities</h3>
<div data-qa="course__personal_qualities">
<%= helpers.markdown(course.personal_qualities) %>
</div>
<% end %>
<h3 class="govuk-heading-m"><%= t("find.get_into_teaching.qualifications_outside_uk") %> </h3>

<p class="govuk-body"><%= t("find.get_into_teaching.qualifications_outside_uk_body") %> </p>

<% if course.other_requirements.present? %>
<h3 class="govuk-heading-m">Other requirements</h3>
<div data-qa="course__other_requirements">
<%= helpers.markdown(course.other_requirements) %>
</div>
<% end %>
<p class="govuk-body">

<%= govuk_link_to(t("find.get_into_teaching.apply_for_statement_of_comparability"),
t("find.enic.statement_of_comparability.url"),
target: "_blank",
new_tab: true,
rel: "noopener") %>
</p>

<p class="govuk-body">
<%= govuk_link_to(t("find.get_into_teaching.chat_online"),
t("find.get_into_teaching.url_online_chat"),
target: "_blank",
new_tab: true,
rel: "noopener") %>
<%= t("find.get_into_teaching.support_team") %>
</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,5 @@
<%= t("find.international_candidates.#{visa_type}.#{sponsorship_availability}.html") %>

<p class="govuk-body">Learn more about <%= govuk_link_to("training to teach in England as an international student", t("find.get_into_teaching.url_train_to_teach_as_international_candidate")) %>.</p>

<h3 class="govuk-heading-m">Qualifications gained outside the UK</h3>
<p class="govuk-body">If you studied for your qualifications outside of the UK you should apply for a statement of comparability from UK European Network of Information Centres (UK ENIC). This will show us how your qualifications compare to UK qualifications.</p>

<p class="govuk-body">
<%= govuk_link_to("Apply for a statement of comparability (opens in new tab)",
t("find.enic.statement_of_comparability.url"),
target: "_blank",
rel: "noopener") %>
</p>

<p class="govuk-body">
<%= govuk_link_to("You can chat online (opens in new tab)",
t("find.get_into_teaching.url_online_chat"),
target: "_blank",
rel: "noopener") %>
with the Get Into Teaching support team for guidance on the UK equivalents of your qualifications.
</p>
</div>
</div>
4 changes: 2 additions & 2 deletions app/views/find/courses/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

<%= render Find::Courses::ContentsComponent::View.new(@course) %>

<%= render Find::Courses::EntryRequirementsComponent::View.new(course: @course) %>

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

<%= render Find::Courses::AboutSchoolsComponent::View.new(@course) %>

<%= render Find::Courses::EntryRequirementsComponent::View.new(course: @course) %>

<% if @course.salaried? %>
<%= render partial: "find/courses/salary", locals: { course: @course } %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/publish/courses/preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
<div class="govuk-grid-column-two-thirds">
<%= render Find::Courses::ContentsComponent::View.new(course) %>

<%= render Find::Courses::EntryRequirementsComponent::View.new(course:) %>

<%= render partial: "find/courses/about_course", locals: { course: } %>

<%= render Find::Courses::AboutSchoolsComponent::View.new(course) %>

<%= render Find::Courses::EntryRequirementsComponent::View.new(course:) %>

<% if course.salaried? %>
<%= render partial: "find/courses/salary", locals: { course: } %>
<% end %>
Expand Down
5 changes: 5 additions & 0 deletions config/locales/find.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ en:
html:
<p class="govuk-body">You may be entitled to £10,000 from the UK government to help with the financial costs of moving to England.</p>
get_into_teaching:
apply_for_statement_of_comparability: Apply for a statement of comparability
chat_online: You can chat online
support_team: with the Get Into Teaching support team for guidance on the UK equivalents of your qualifications.
qualifications_outside_uk: Qualifications gained outside the UK
qualifications_outside_uk_body: If you studied for your qualifications outside of the UK you should apply for a statement of comparability from UK European Network of Information Centres (UK ENIC). This will show us how your qualifications compare to UK qualifications.
tel: 0800 389 2500
opening_times: "Monday to Friday, 8.30am to 5.30pm"
url_engineers_teach_physics: https://getintoteaching.education.gov.uk/subjects/engineers-teach-physics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,20 @@
)
end
end

it 'includes the qualifications gain outside of UK section' do
course = build(
:course,
degree_grade: 'two_two',
additional_degree_subject_requirements: true,
degree_subject_requirements: 'Certificate must be printed on green paper.'
)
render_inline(described_class.new(course: course.decorate))

expect(page).to have_css('h3', text: 'Qualifications gained outside the UK')

expect(page).to have_text('If you studied for your qualifications outside of the UK you should apply for a statement of comparability from UK European Network of Information Centres (UK ENIC). This will show us how your qualifications compare to UK qualifications.')

expect(page).to have_link('Apply for a statement of comparability (opens in new tab)')
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@
it 'tells candidates sponsorship is not available' do
expect(page).to have_text('Sponsorship for a student visa is not available for this course')
end

it 'renders the h3 qualifications gained outside the UK' do
expect(page).to have_css('h3', text: 'Qualifications gained outside the UK')
end

it 'tells candidates about qualifications gained outside of the UK' do
expect(page).to have_text('If you studied for your qualifications outside of the UK you should apply for a statement of comparability from UK European Network of Information Centres (UK ENIC). This will show us how your qualifications compare to UK qualifications.')
end

it 'renders the enic link' do
expect(page).to have_link('Apply for a statement of comparability (opens in new tab)')
end
end

context 'when the course is fee-paying and does sponsor Student visas' do
Expand Down
8 changes: 0 additions & 8 deletions spec/features/find/search/viewing_a_course_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,6 @@ def then_i_should_see_the_course_information
'Certificate must be print in blue ink'
)

expect(find_course_show_page.personal_qualities).to have_content(
@course.latest_published_enrichment.personal_qualities
)

expect(find_course_show_page.other_requirements).to have_content(
@course.latest_published_enrichment.other_requirements
)

expect(find_course_show_page.train_with_us).to have_content(
provider.train_with_us
)
Expand Down
8 changes: 0 additions & 8 deletions spec/features/publish/viewing_a_course_preview_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,6 @@ def then_i_see_the_course_preview_details
'Financial support from the training provider'
)

expect(publish_course_preview_page.personal_qualities).to have_content(
decorated_course.personal_qualities
)

expect(publish_course_preview_page.other_requirements).to have_content(
decorated_course.other_requirements
)

expect(publish_course_preview_page.train_with_us).to have_content(
provider.train_with_us
)
Expand Down

0 comments on commit edf18bc

Please sign in to comment.