diff --git a/lib/smart_answer_flows/locales/en/register-a-death.yml b/lib/smart_answer_flows/locales/en/register-a-death.yml deleted file mode 100644 index ea6b96e1458..00000000000 --- a/lib/smart_answer_flows/locales/en/register-a-death.yml +++ /dev/null @@ -1,30 +0,0 @@ -en-GB: - flow: - register-a-death: - where_did_the_death_happen?: - title: Where did the death happen? - options: - england_wales: "England or Wales" - scotland: "Scotland" - northern_ireland: "Northern Ireland" - overseas: "Abroad" - did_the_person_die_at_home_hospital?: - title: Did the person die at home, in hospital or elsewhere? - options: - at_home_hospital: "At home or in hospital" - elsewhere: "Elsewhere" - was_death_expected?: - title: Was the death expected? - options: - "yes": "Yes" - "no": "No" - which_country?: - title: Which country did the death happen in? - where_are_you_now?: - title: Where are you now? - options: - same_country: "In the country where the death happened" - another_country: "In another country" - in_the_uk: "In the UK" - which_country_are_you_in_now?: - title: Which country are you in now? diff --git a/lib/smart_answer_flows/register-a-death.rb b/lib/smart_answer_flows/register-a-death.rb index f58fa14ef49..e6c6466f3a0 100644 --- a/lib/smart_answer_flows/register-a-death.rb +++ b/lib/smart_answer_flows/register-a-death.rb @@ -6,6 +6,8 @@ def define status :published satisfies_need "101006" + use_erb_templates_for_questions + country_name_query = SmartAnswer::Calculators::CountryNameFormatter.new reg_data_query = SmartAnswer::Calculators::RegistrationsDataQuery.new translator_query = SmartAnswer::Calculators::TranslatorLinks.new diff --git a/lib/smart_answer_flows/register-a-death/questions/did_the_person_die_at_home_hospital.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/did_the_person_die_at_home_hospital.govspeak.erb new file mode 100644 index 00000000000..2efac3c310f --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/did_the_person_die_at_home_hospital.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Did the person die at home, in hospital or elsewhere? +<% end %> + +<% options( + "at_home_hospital": "At home or in hospital", + "elsewhere": "Elsewhere" +) %> diff --git a/lib/smart_answer_flows/register-a-death/questions/was_death_expected.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/was_death_expected.govspeak.erb new file mode 100644 index 00000000000..58618300552 --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/was_death_expected.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Was the death expected? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> diff --git a/lib/smart_answer_flows/register-a-death/questions/where_are_you_now.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/where_are_you_now.govspeak.erb new file mode 100644 index 00000000000..c23739a3867 --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/where_are_you_now.govspeak.erb @@ -0,0 +1,9 @@ +<% content_for :title do %> + Where are you now? +<% end %> + +<% options( + "same_country": "In the country where the death happened", + "another_country": "In another country", + "in_the_uk": "In the UK" +) %> diff --git a/lib/smart_answer_flows/register-a-death/questions/where_did_the_death_happen.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/where_did_the_death_happen.govspeak.erb new file mode 100644 index 00000000000..56501271955 --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/where_did_the_death_happen.govspeak.erb @@ -0,0 +1,10 @@ +<% content_for :title do %> + Where did the death happen? +<% end %> + +<% options( + "england_wales": "England or Wales", + "scotland": "Scotland", + "northern_ireland": "Northern Ireland", + "overseas": "Abroad" +) %> diff --git a/lib/smart_answer_flows/register-a-death/questions/which_country.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/which_country.govspeak.erb new file mode 100644 index 00000000000..449cf335864 --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/which_country.govspeak.erb @@ -0,0 +1,3 @@ +<% content_for :title do %> + Which country did the death happen in? +<% end %> diff --git a/lib/smart_answer_flows/register-a-death/questions/which_country_are_you_in_now.govspeak.erb b/lib/smart_answer_flows/register-a-death/questions/which_country_are_you_in_now.govspeak.erb new file mode 100644 index 00000000000..2d15df333ba --- /dev/null +++ b/lib/smart_answer_flows/register-a-death/questions/which_country_are_you_in_now.govspeak.erb @@ -0,0 +1,3 @@ +<% content_for :title do %> + Which country are you in now? +<% end %> diff --git a/test/artefacts/register-a-death/england_wales.html b/test/artefacts/register-a-death/england_wales.html index cba4e5ee45c..986287e4a0f 100644 --- a/test/artefacts/register-a-death/england_wales.html +++ b/test/artefacts/register-a-death/england_wales.html @@ -38,6 +38,7 @@