Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert legalisation-document-checker to use ERB templates for questions #2137

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/smart_answer_flows/legalisation-document-checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ def define
status :published
satisfies_need "101010"

use_erb_templates_for_questions

i18n_prefix = "flow.legalisation-document-checker"

#Q1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<% content_for :title do %>
Which documents do you want legalised?
<% end %>

<% options(
"acro-police-certificate": "ACRO Police Certificate",
"affidavit": "Affidavit",
"articles-of-association": "Articles of association",
"bank-statement": "Bank statement",
"baptism-certificate": "Baptism certificate",
"birth-certificate": "Birth certificate",
"certificate-of-incorporation": "Certificate of incorporation",
"certificate-of-freesale": "Certificate of freesale",
"certificate-of-memorandum": "Certificate of memorandum",
"certificate-of-naturalisation": "Certificate of naturalisation",
"certificate-of-no-impediment": "Certificate of no impediment",
"chamber-of-commerce-document": "Chamber of Commerce document",
"change-of-name-deed": "Change of name deed",
"civil-partnership-certificate": "Civil partnership certificate",
"criminal-records-bureau-document": "Criminal Records Bureau (CRB) document",
"criminal-records-check": "Criminal records check",
"companies-house-document": "Companies House document",
"county-court-document": "County court document",
"court-document": "Court document",
"court-of-bankruptcy-document": "Court of Bankruptcy document",
"death-certificate": "Death certificate",
"decree-nisi": "Decree nisi",
"decree-absolute": "Decree absolute",
"degree-certificate-uk": "Degree certificate (UK)",
"department-of-business-innovation-skills-document": "Department of Business, Innovation and Skills (BIS) document",
"department-of-health-document": "Department of Health document",
"diploma": "Diploma",
"disclosure-scotland-document": "Disclosure Scotland document",
"doctor-letter-medical": "Doctor’s letter (medical)",
"driving-licence": "Driving licence (copy)",
"educational-certificate-uk": "Educational certificate (UK)",
"export-certificate": "Export certificate",
"family-division-high-court-justice-document": "Family Division of the High Court of Justice document",
"fingerprints": "Fingerprints document",
"fit-note-from-a-doctor": "Fit note (from a doctor)",
"government-issued-document": "Government issued document",
"grant-of-probate": "Grant of probate",
"high-court-justice-document": "High Court of Justice document",
"hmrc-document": "HM Revenue and Customs document",
"home-office-document": "Home Office document",
"last-will-testament": "Last will and testament",
"letter-from-employer": "Letter from an employer",
"letter-of-enrolment": "Letter of enrolment",
"letter-of-invitation": "Letter of invitation",
"letter-of-no-trace": "Letter of no trace",
"medical-report": "Medical report",
"marriage-certificate": "Marriage certificate",
"name-change-deed-or-document": "Name change deed or document",
"passport-copy-only": "Passport (copy only)",
"pet-export-document": "Pet export document from the Department of Environment, Food and Rural Affairs (DEFRA)",
"police-disclosure-document": "Police disclosure document",
"power-of-attorney": "Power of attorney",
"probate": "Probate",
"reference-from-an-employer": "Reference from an employer",
"religious-document": "Religious document",
"sheriff-court-document": "Sheriff court document",
"sick-note-from-doctor": "Sick note (from a doctor)",
"statutory-declaration": "Statutory declaration",
"test-results-medical": "Test results (medical)",
"translation": "Translation",
"utility-bill": "Utility bill"
) %>

This file was deleted.

2 changes: 2 additions & 0 deletions test/artefacts/legalisation-document-checker/y.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h2>




<div class="">

<ul class="options">
Expand Down Expand Up @@ -411,6 +412,7 @@ <h2>




</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions test/data/legalisation-document-checker-files.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
lib/smart_answer_flows/legalisation-document-checker.rb: b160054be666a2317125e6646bd7cb4c
lib/smart_answer_flows/locales/en/legalisation-document-checker.yml: a9ca977abcf14999469adc7f47d1f051
lib/smart_answer_flows/legalisation-document-checker.rb: eec50547825c770f58f1494090ca4fed
test/data/legalisation-document-checker-questions-and-responses.yml: 37c99c68ba04e459447622b01938ce0b
test/data/legalisation-document-checker-responses-and-expected-results.yml: d55ccccc64cc1f58b648e810e5fa07e5
lib/smart_answer_flows/legalisation-document-checker/legalisation_document_checker.govspeak.erb: 4be67b8e3aeebe4f3b99a5153b92ccdf
lib/smart_answer_flows/legalisation-document-checker/outcomes/outcome_results.govspeak.erb: 00c464b05564abf1824e3da37bca1d24
lib/smart_answer_flows/legalisation-document-checker/questions/which_documents_do_you_want_legalised.govspeak.erb: 807d6bee48fd47731d066aab6ad50544
lib/smart_answer/calculators/legalisation_documents_data_query.rb: 31d5eec29a4cf4e27a4204e8f08132f9
lib/data/legalisation_documents_data.yml: 788f0f6cbd9b35be712f9aca7c871591