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 register-a-birth to use ERB templates for questions #2146

Merged

Conversation

floehopper
Copy link
Contributor

No description provided.

@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/register-a-birth
    Writing template: have_you_adopted_the_child.govspeak.erb
    Writing template: who_has_british_nationality.govspeak.erb
    Writing template: country_of_birth.govspeak.erb
    Writing template: married_couple_or_civil_partnership.govspeak.erb
    Writing template: childs_date_of_birth.govspeak.erb
    Writing template: where_are_you_now.govspeak.erb
    Writing template: which_country.govspeak.erb

    Deleting i18n YAML: register-a-birth.yml

    Now insert `use_erb_templates_for_questions` at top of flow: register-a-birth.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-register-a-birth-to-use-erb-templates-for-questions branch from 97d46b1 to 1ea3a58 Compare November 19, 2015 17:29
@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
…e-erb-templates-for-questions

Convert register-a-birth to use ERB templates for questions
@chrisroos chrisroos merged commit 7ea6429 into master Nov 19, 2015
@chrisroos chrisroos deleted the convert-register-a-birth-to-use-erb-templates-for-questions branch November 19, 2015 17:33
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