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

Conversation

floehopper
Copy link
Contributor

No description provided.

@floehopper floehopper force-pushed the convert-legalisation-document-checker-to-use-erb-templates-for-questions branch from e66bc3b to 58e1c17 Compare November 18, 2015 23:51
@chrisroos
Copy link
Contributor

Looks good to me.

@chrisroos chrisroos self-assigned this Nov 19, 2015
@chrisroos chrisroos added the LGTM label Nov 19, 2015
I ran the following command:

    $ rails r script/convert-question-i18-yaml-to-erb-templates.rb lib/smart_answer_flows/legalisation-document-checker
    Writing template: which_documents_do_you_want_legalised.govspeak.erb

    Deleting i18n YAML: legalisation-document-checker.yml

    Now insert `use_erb_templates_for_questions` at top of flow: legalisation-document-checker.rb
The change to ERB templates has introduced a few extra newlines in the
question page HTML, but none of them affect the content viewable by the user.

I verified that the changes were all only blank lines using the following
command:

    $ git diff --ignore-blank-lines
Re-generating the checksums has removed the i18n YAML file and added the new
question templates as I expected.
@chrisroos chrisroos force-pushed the convert-legalisation-document-checker-to-use-erb-templates-for-questions branch from 58e1c17 to ec9b235 Compare November 19, 2015 16:50
@chrisroos
Copy link
Contributor

I've rebased on master and force pushed in preparation for merging.

chrisroos added a commit that referenced this pull request Nov 19, 2015
…checker-to-use-erb-templates-for-questions

Convert legalisation-document-checker to use ERB templates for questions
@chrisroos chrisroos merged commit 5757d81 into master Nov 19, 2015
@chrisroos chrisroos deleted the convert-legalisation-document-checker-to-use-erb-templates-for-questions branch November 19, 2015 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants