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 childcare-costs-for-tax-credits to use ERB templates for questions #2131

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/childcare-costs-for-tax-credits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ def define
status :published
satisfies_need "100422"

use_erb_templates_for_questions

#Q1
multiple_choice :currently_claiming? do
option :yes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% content_for :title do %>
Are you currently claiming tax credits for childcare costs?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% content_for :title do %>
Have the costs of your childcare changed since you last made your claim?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% content_for :title do %>
How much do you expect to pay in total for childcare for the next 12 months?
<% end %>

<% content_for :hint do %>
Add up the amounts you expect to pay in total for the next 12 months - start from the day you’re doing the calculation
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you expect to pay in total for childcare for the next 12 months?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you pay every 4 weeks?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% content_for :title do %>
How much do you expect to pay in total for childcare for the next 52 weeks?
<% end %>

<% content_for :hint do %>
Add up the amounts you expect to pay in total for the next 52 weeks - start from the day you’re doing the calculation
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you expect to pay in total for childcare for the next 52 weeks?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you pay each month?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you pay each fortnight?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% content_for :title do %>
How much have you spent on childcare in the last 12 months?
<% end %>

<% content_for :hint do %>
Add up how much you have spent in total over the last 12 months - start backwards from the date you’re doing the calculation.
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
How much do you pay every year?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<% content_for :title do %>
How often do you pay your childcare provider(s)?
<% end %>

<% options(
"weekly_same_amount": "Weekly, and I always pay the same amount",
"weekly_diff_amount": "Weekly, and the amount I pay varies",
"monthly_same_amount": "Monthly, and I always pay the same amount",
"monthly_diff_amount": "Monthly, and the amount I pay varies",
"other": "Other"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<% content_for :title do %>
How often do you pay your childcare provider(s)?
<% end %>

<% options(
"weekly_same_amount": "Weekly, and I always pay the same amount",
"weekly_diff_amount": "Weekly, and the amount I pay varies",
"monthly_same_amount": "Monthly, and I always pay the same amount",
"monthly_diff_amount": "Monthly, and the amount I pay varies",
"other": "Other"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<% content_for :title do %>
How often do you pay your childcare provider(s)?
<% end %>

<% options(
"weekly": "Weekly",
"fortnightly": "Fortnightly",
"every_4_weeks": "Every 4 weeks",
"every_month": "Every calendar month",
"termly": "Termly",
"yearly": "Yearly",
"other": "Other"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<% content_for :title do %>
How often do you use childcare?
<% end %>

<% options(
"regularly_less_than_year": "I’ve been using childcare regularly for less than a year",
"regularly_more_than_year": "I've been using childcare regularly for a year or more",
"only_short_while": "I only use childcare for short periods once in a while"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% content_for :title do %>
What's the new monthly cost of your childcare?
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% content_for :title do %>
What are your new weekly costs?
<% end %>

<% content_for :body do %>
Round the total up to the nearest pound.
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<% content_for :title do %>
What was the old average weekly amount you gave the Tax Credit Office?
<% end %>

<% content_for :body do %>
If you don’t know what your previous childcare costs were, check your award or renewal notice.

Round the total up to the nearest pound.

<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<% content_for :title do %>
What was the old average weekly amount you gave the Tax Credit Office?
<% end %>

<% content_for :body do %>
If you don’t know what your previous childcare costs were, check your award or renewal notice.

Round the total up to the nearest pound.

<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<% content_for :title do %>
What was the old average weekly amount you gave the Tax Credit Office?
<% end %>

<% content_for :body do %>
If you don’t know what your previous childcare costs were, check your award or renewal notice.

Round the total up to the nearest pound.

<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<% content_for :title do %>
Do you pay the same each time?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>

<% content_for :body do %>
Sometimes you may pay - or expect to pay - different amounts for childcare (known as ‘variable costs’), for example:

- you regularly use childcare, but pay more during school holidays than you do at term time
- the hours you use childcare change from week to week or month to month

<% end %>
140 changes: 0 additions & 140 deletions lib/smart_answer_flows/locales/en/childcare-costs-for-tax-credits.yml

This file was deleted.

4 changes: 3 additions & 1 deletion test/artefacts/childcare-costs-for-tax-credits/no.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h2>




<div class="">

<ul class="options">
Expand All @@ -50,7 +51,7 @@ <h2>
<li>
<label for="response_1" class="selectable">
<input type="radio" name="response" id="response_1" value="regularly_more_than_year" />
I&#39;ve been using childcare regularly for a year or more
I've been using childcare regularly for a year or more
</label>
</li>
<li>
Expand All @@ -63,6 +64,7 @@ <h2>




</div>
</div>
</div>
Expand Down
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 @@ -75,6 +76,7 @@ <h2>




</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ <h2>
<div class="question-body">



<p class="hint">Add up the amounts you expect to pay in total for the next 12 months - start from the day you’re doing the calculation</p>

<div class="">
Expand All @@ -45,6 +46,7 @@ <h2>




</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ <h2>




<div class="">

<label for="response_amount">&pound; <input type="text" name="response" id="response" size="5" /></label>




</div>
</div>
</div>
Expand Down
Loading