Skip to content

Commit

Permalink
add hours_teaching_eligible_subjects to FE answers
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jul 24, 2024
1 parent c864623 commit 8c162e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def eligibility_answers
a << teaching_hours_per_week
a << further_education_teaching_start_year
a << subjects_taught
a << hours_teaching_eligible_subjects
a << half_teaching_hours
a << teaching_qualification
a << subject_to_formal_performance_action
Expand Down Expand Up @@ -69,6 +70,14 @@ def teaching_hours_per_week
]
end

def hours_teaching_eligible_subjects
[
t("further_education_payments.forms.hours_teaching_eligible_subjects.question"),
(journey_session.answers.hours_teaching_eligible_subjects? ? "Yes" : "No"),
"hours-teaching-eligible-subjects"
]
end

def further_education_teaching_start_year
# TODO: pre-xxxx is an ineligible state so this conditional can be removed when the eligility checking is added, it won't be used
answer = if journey_session.answers.further_education_teaching_start_year =~ /pre-(\d{4})/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
teaching_hours_per_week: teaching_hours_per_week,
further_education_teaching_start_year: further_education_teaching_start_year,
subjects_taught: subjects_taught,
hours_teaching_eligible_subjects: true,
half_teaching_hours: half_teaching_hours,
teaching_qualification: teaching_qualification,
subject_to_formal_performance_action: subject_to_formal_performance_action,
Expand All @@ -45,6 +46,7 @@
["On average, how many hours per week are you timetabled to teach at #{college.name} during the current term?", "More than 12 hours per week", "teaching-hours-per-week"],
["Which academic year did you start teaching in further education (FE) in England?", "September 2023 to August 2024", "further-education-teaching-start-year"],
["Which subject areas do you teach?", "<p class=\"govuk-body\">Chemistry</p><p class=\"govuk-body\">Maths</p>", "subjects-taught"],
["Do you spend at least half of your timetabled teaching hours teaching these eligible courses?", "Yes", "hours-teaching-eligible-subjects"],
["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)?", "Yes", "half-teaching-hours"],
["Do you have a teaching qualification?", "Yes", "teaching-qualification"],
["Have any performance measures been started against you?", "No", "poor-performance"],
Expand Down

0 comments on commit 8c162e1

Please sign in to comment.