-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace render_content_for for text content
This sets all of these scenarios of setting text content to use the text_for helper method.
- Loading branch information
1 parent
68fefce
commit a0518a5
Showing
576 changed files
with
876 additions
and
876 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
lib/smart_answer_flows/additional-commodity-code/additional_commodity_code.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/smart_answer_flows/additional-commodity-code/outcomes/commodity_code_result.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/smart_answer_flows/am-i-getting-minimum-wage/am_i_getting_minimum_wage.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/current_accommodation_charge.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How much does your employer charge for accommodation per day? | ||
<% end %> | ||
|
||
<% render_content_for :suffix_label do %> | ||
<% text_for :suffix_label do %> | ||
per day | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number greater than 0 | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/current_accommodation_usage.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How many days per week do you live in the accommodation? | ||
<% end %> | ||
|
||
<% render_content_for :suffix_label do %> | ||
<% text_for :suffix_label do %> | ||
days per week | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
7 is the highest number of days you can enter. | ||
<% end %> |
4 changes: 2 additions & 2 deletions
4
...nswer_flows/am-i-getting-minimum-wage/questions/current_additional_work_outside_shift.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._answer_flows/am-i-getting-minimum-wage/questions/current_paid_for_work_outside_shift.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...er_flows/am-i-getting-minimum-wage/questions/did_employer_charge_for_job_requirements.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...r_flows/am-i-getting-minimum-wage/questions/does_employer_charge_for_job_requirements.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_many_hours_did_you_work.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How many hours did you work during the pay period? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
This includes any time you were at work and needed to be available for work or any time spent travelling in connection with work (for example, travelling to a training course or between work locations). Do not include overtime or time taken to travel to your normal workplace. | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number | ||
<% end %> | ||
<% render_content_for :error_hours do %> | ||
<% text_for :error_hours do %> | ||
Please enter the number of hours you actually worked during the pay period. | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_many_hours_do_you_work.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How many hours do you work during the pay period? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
This includes any time you’re at work and need to be available for work or any time spent travelling in connection with work (for example, travelling to a training course or between work locations). Do not include overtime or time taken to travel to your normal workplace. | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number | ||
<% end %> | ||
<% render_content_for :error_hours do %> | ||
<% text_for :error_hours do %> | ||
Please enter the number of hours you actually work during the pay period. | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...wer_flows/am-i-getting-minimum-wage/questions/how_much_are_you_paid_during_pay_period.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How much do you get paid before tax in the pay period? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
Do not include payments for overtime or anything extra to your pay, for example money for clothes or goods. | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...er_flows/am-i-getting-minimum-wage/questions/how_much_were_you_paid_during_pay_period.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How much were you paid in the pay period? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
Do not include tips, overtime or anything else on top of your pay, for example money for clothes or goods. | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_often_did_you_get_paid.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How often did you get paid? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
Your pay period in days | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number between 1 and 31. | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_often_do_you_get_paid.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How often do you get paid? | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
Your pay period in days | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a number between 1 and 31. | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_old_are_you.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
<%= age_title %> | ||
<% end %> | ||
|
||
<% render_content_for :suffix_label do %> | ||
<% text_for :suffix_label do %> | ||
years old | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a whole number greater than 0 | ||
<% end %> | ||
|
||
<% render_content_for :error_valid_age_for_living_wage? do %> | ||
<% text_for :error_valid_age_for_living_wage? do %> | ||
You must be 25 or over to get the National Living Wage | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
lib/smart_answer_flows/am-i-getting-minimum-wage/questions/how_old_were_you.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
How old were you at the time? | ||
<% end %> | ||
|
||
<% render_content_for :suffix_label do %> | ||
<% text_for :suffix_label do %> | ||
years old | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Please enter a whole number greater than 0 | ||
<% end %> |
Oops, something went wrong.