Skip to content

Commit

Permalink
Quick copy fix
Browse files Browse the repository at this point in the history
Need to show the duration of the contract for long term fixed
  • Loading branch information
rjlynch committed Sep 6, 2024
1 parent 79effaa commit 5a2a5e0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def teaching_hours_per_week
).downcase
end

def claimant_contract_duration
if claim.eligibility.fixed_term_full_year
"covering the full academic year "
end
end

def assertions
@assertions ||= ASSERTIONS.fetch(contract_type).map do |assertion_name|
AssertionForm.new(name: assertion_name, parent_form: self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
claimant: f.object.claimant_name,
provider: f.object.claim.school.name,
hours: f.object.teaching_hours_per_week,
type_of_contract: f.object.claimant_contract_of_employment
type_of_contract: f.object.claimant_contract_of_employment,
duration: f.object.claimant_contract_duration
),
},
hint: -> do
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ en:
assertions:
fixed_contract:
contract_type:
label: "Does %{claimant} have a %{type_of_contract} of employment at %{provider}?"
label: "Does %{claimant} have a %{type_of_contract} of employment %{duration}at %{provider}?"
errors:
inclusion: "Select yes if %{claimant} has a fixed term contract of employment at %{provider}"
teaching_responsibilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@
expect(page).to have_text "Claim date1 August 2024"

within_fieldset(
"Does Edna Krabappel have a fixed-term contract of employment at " \
"Springfield A and M?"
"Does Edna Krabappel have a fixed-term contract of employment covering " \
"the full academic year at Springfield A and M?"
) do
choose "Yes"
end
Expand Down

0 comments on commit 5a2a5e0

Please sign in to comment.