You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These were not dealt with automatically by the conversion script.
I've also elected to inline the phrases from the i18n YAML file into the flow
`precalculate` blocks. Note that I've had to mark on of them as HTML-safe to
avoid an apostrophe being HTML-escaped. This isn't ideal, but I'd hope that
these strings would move into the ERB template or a helper method where this
would be easier to deal with.
Copy file name to clipboardexpand all lines: lib/smart_answer_flows/calculate-your-child-maintenance.rb
+25-5
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,11 @@ def define
29
29
end
30
30
31
31
precalculate:paying_or_receiving_hintdo
32
-
PhraseList.new(:"#{paying_or_receiving}_hint")
32
+
ifpaying_or_receiving == "pay"
33
+
"Enter the total number of children - including children that you have family based arrangements for. They will be included in the calculation and you'll need to supply information about them when arranging Child Maintenance.".html_safe
34
+
else
35
+
"Enter children from 1 partner only and make a separate calculation for each partner."
Copy file name to clipboardexpand all lines: lib/smart_answer_flows/calculate-your-child-maintenance/questions/how_many_nights_children_stay_with_payee.govspeak.erb
Copy file name to clipboardexpand all lines: lib/smart_answer_flows/calculate-your-child-maintenance/questions/how_many_other_children_in_payees_household.govspeak.erb
assert_state_variable:paying_or_receiving_hint,"Enter the total number of children - including children that you have family based arrangements for. They will be included in the calculation and you'll need to supply information about them when arranging Child Maintenance."
0 commit comments