-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3011 from DFE-Digital/fe-error-titles
[LUPEYALPHA-696] Add missing page titles to FE journey
- Loading branch information
Showing
19 changed files
with
87 additions
and
24 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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/_courses.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
2 changes: 1 addition & 1 deletion
2
...s/further_education_payments/claims/_ineligible_teaching_less_than_2_5_next_term.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
26 changes: 16 additions & 10 deletions
26
app/views/further_education_payments/claims/contract_type.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,12 +1,18 @@ | ||
<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> | ||
<%= f.govuk_error_summary %> | ||
<% content_for(:page_title, page_title(@form.t(:question, school_name: journey_session.answers.school.name), journey: current_journey_routing_name, show_error: @form.errors.any?)) %> | ||
|
||
<%= f.govuk_collection_radio_buttons :contract_type, @form.radio_options, :id, :name, :hint, | ||
legend: { | ||
text: @form.t(:question, school_name: journey_session.answers.school.name), | ||
tag: "h1", | ||
size: "l" | ||
} %> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> | ||
<%= f.govuk_error_summary %> | ||
|
||
<%= f.govuk_submit %> | ||
<% end %> | ||
<%= f.govuk_collection_radio_buttons :contract_type, @form.radio_options, :id, :name, :hint, | ||
legend: { | ||
text: @form.t(:question, school_name: journey_session.answers.school.name), | ||
tag: "h1", | ||
size: "l" | ||
} %> | ||
|
||
<%= f.govuk_submit %> | ||
<% end %> | ||
</div> | ||
</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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/fixed_term_contract.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/further_education_provision_search.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/further_education_teaching_start_year.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/half_teaching_hours.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/ineligible.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 +1,3 @@ | ||
<% content_for(:page_title, page_title(@form.t("#{@form.journey_eligibility_checker.ineligibility_reason}.heading"), journey: current_journey_routing_name, show_error: @form.errors.any?)) %> | ||
|
||
<%= render "ineligible_#{@form.journey_eligibility_checker.ineligibility_reason}" %> |
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/poor_performance.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
28 changes: 17 additions & 11 deletions
28
app/views/further_education_payments/claims/select_provision.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,13 +1,19 @@ | ||
<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> | ||
<%= f.govuk_error_summary %> | ||
<% content_for(:page_title, page_title(@form.t(:heading), journey: current_journey_routing_name, show_error: @form.errors.any?)) %> | ||
|
||
<%= f.govuk_collection_radio_buttons :school_id, @form.radio_options, :id, :name, :address, | ||
legend: { | ||
text: "Select the college you teach at", | ||
tag: "h1", | ||
size: "l" | ||
}, | ||
hint: { text: "Select your college from the search results." } %> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> | ||
<%= f.govuk_error_summary %> | ||
|
||
<%= f.govuk_submit %> | ||
<% end %> | ||
<%= f.govuk_collection_radio_buttons :school_id, @form.radio_options, :id, :name, :address, | ||
legend: { | ||
text: @form.t("heading"), | ||
tag: "h1", | ||
size: "l" | ||
}, | ||
hint: { text: "Select your college from the search results." } %> | ||
|
||
<%= f.govuk_submit %> | ||
<% end %> | ||
</div> | ||
</div> |
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/subjects_taught.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/taught_at_least_one_term.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/teaching_hours_per_week.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/teaching_hours_per_week_next_term.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/teaching_qualification.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
2 changes: 2 additions & 0 deletions
2
app/views/further_education_payments/claims/teaching_responsibilities.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
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 |
---|---|---|
|
@@ -818,6 +818,25 @@ en: | |
feedback_email: "[email protected]" | ||
support_email_address: "[email protected]" | ||
forms: | ||
ineligible: | ||
courses: | ||
heading: You are not eligible | ||
lack_teaching_responsibilities: | ||
heading: You are not eligible | ||
lacks_teacher_qualification_or_enrolment: | ||
heading: You are not eligible | ||
must_at_least_half_hours_teaching_fe: | ||
heading: You are not eligible | ||
must_be_recent_further_education_teacher: | ||
heading: You are not eligible | ||
must_teach_at_least_one_term: | ||
heading: You are not eligible for a financial incentive payment yet | ||
subject_to_problematic_actions: | ||
heading: You are not eligible | ||
ineligible_teaching_less_than_2_5: | ||
heading: You are not eligible | ||
teaching_less_than_2_5_next_term: | ||
heading: You are not eligible | ||
teaching_responsibilities: | ||
question: Are you a member of staff with teaching responsibilities? | ||
errors: | ||
|
@@ -828,6 +847,7 @@ en: | |
blank: Enter a college name or postcode | ||
min_length: Enter a college name or postcode that is at least 3 characters long | ||
select_provision: | ||
heading: Select the college you teach at | ||
errors: | ||
blank: Select the college you teach at | ||
contract_type: | ||
|
@@ -991,6 +1011,8 @@ en: | |
question: Are at least half of your timetabled teaching hours spent teaching 16 to 19-year-olds, including those up to age 25 with an Education, Health and Care Plan (EHCP)? | ||
errors: | ||
inclusion: Select yes if at least half your timetabled teaching hours are spent teaching 16-19-year-olds, including those up to 25 with an Education, Health and Care Plan | ||
eligible: | ||
heading: You’re eligible for a financial incentive payment | ||
check_your_answers: | ||
part_one: | ||
primary_heading: Check your answers | ||
|