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 calculate-statutory-sick pay to use ERB templates for questions #2127

Conversation

floehopper
Copy link
Contributor

No description provided.

@floehopper floehopper force-pushed the convert-calculate-statutory-sick-pay-to-use-erb-templates-for-questions branch from 70a72d1 to 1a7fe03 Compare November 18, 2015 20:30
@floehopper
Copy link
Contributor Author

I've rebased this against master and force-pushed.

@chrisroos chrisroos self-assigned this Nov 19, 2015
@chrisroos
Copy link
Contributor

Looks good to me.

@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/calculate-statutory-sick-pay
    Writing template: is_your_employee_getting.govspeak.erb
    Writing template: employee_tell_within_limit.govspeak.erb
    Writing template: employee_work_different_days.govspeak.erb
    Writing template: first_sick_day.govspeak.erb
    Writing template: last_sick_day.govspeak.erb
    Writing template: has_linked_sickness.govspeak.erb
    Writing template: linked_sickness_start_date.govspeak.erb
    Writing template: linked_sickness_end_date.govspeak.erb
    Writing template: paid_at_least_8_weeks.govspeak.erb (WARNING: contains interpolation)
    Writing template: how_often_pay_employee_pay_patterns.govspeak.erb
    Writing template: last_payday_before_sickness.govspeak.erb (WARNING: contains interpolation)
    Writing template: last_payday_before_offset.govspeak.erb (WARNING: contains interpolation)
    Writing template: total_employee_earnings.govspeak.erb (WARNING: contains interpolation)
    Writing template: pay_amount_if_not_sick.govspeak.erb
    Writing template: contractual_days_covered_by_earnings.govspeak.erb
    Writing template: total_earnings_before_sick_period.govspeak.erb (WARNING: contains interpolation)
    Writing template: days_covered_by_earnings.govspeak.erb
    Writing template: usual_work_days.govspeak.erb

    Deleting i18n YAML: calculate-statutory-sick-pay.yml

    Now insert `use_erb_templates_for_questions` at top of flow: calculate-statutory-sick-pay.rb
These were not dealt with automatically by the conversion script.
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-calculate-statutory-sick-pay-to-use-erb-templates-for-questions branch from 1a7fe03 to ed410ba Compare November 19, 2015 16:03
@chrisroos
Copy link
Contributor

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

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

Convert calculate-statutory-sick pay to use ERB templates for questions
@chrisroos chrisroos merged commit 3da8c1f into master Nov 19, 2015
@chrisroos chrisroos deleted the convert-calculate-statutory-sick-pay-to-use-erb-templates-for-questions branch November 19, 2015 16:06
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