Skip to content

Commit

Permalink
Replace render_content_for for text content
Browse files Browse the repository at this point in the history
This sets all of these scenarios of setting text content to use the
text_for helper method.
  • Loading branch information
kevindew authored and theseanything committed Jun 30, 2020
1 parent 68fefce commit a0518a5
Show file tree
Hide file tree
Showing 576 changed files with 876 additions and 876 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% render_content_for :title do %>
<% text_for :title do %>
Look up Meursing code
<% end %>

<% render_content_for :meta_description do %>
<% text_for :meta_description do %>
Look up the additional code (Meursing code) required for import or export of goods containing certain types of milk and sugars
<% end %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
<% unless calculator.has_commodity_code? %>
The product composition you indicated is not possible.
<% else %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk fat does the product contain?
<% end %>

Expand All @@ -17,6 +17,6 @@
"85": "85 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk proteins does the product contain?
<% end %>

Expand All @@ -11,6 +11,6 @@
"60": "60 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk proteins does the product contain?
<% end %>

Expand All @@ -8,6 +8,6 @@
"12": "12 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk proteins does the product contain?
<% end %>

Expand All @@ -8,6 +8,6 @@
"15": "15 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk proteins does the product contain?
<% end %>

Expand All @@ -8,6 +8,6 @@
"18": "18 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much milk proteins does the product contain?
<% end %>

Expand All @@ -7,6 +7,6 @@
"6": "6 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much starch or glucose does the product contain?
<% end %>

Expand All @@ -10,6 +10,6 @@
"75": "75 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much sucrose, invert sugar or isoglucose does the product contain?
<% end %>

Expand All @@ -10,6 +10,6 @@
"70": "70 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much sucrose, invert sugar or isoglucose does the product contain?
<% end %>

Expand All @@ -9,6 +9,6 @@
"50": "50 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much sucrose, invert sugar or isoglucose does the product contain?
<% end %>

Expand All @@ -8,6 +8,6 @@
"30": "30 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
How much sucrose, invert sugar or isoglucose does the product contain?
<% end %>

Expand All @@ -7,6 +7,6 @@
"5": "5 or more"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
The values represent % by weight
<% end %>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% render_content_for :title do %>
<% text_for :title do %>
National Minimum Wage and Living Wage calculator for workers
<% end %>

<% render_content_for :meta_description do %>
<% text_for :meta_description do %>
Check if your pay matches the National Minimum Wage, the National Living Wage or if your employer owes you payments from the previous year.
<% end %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
Are you an apprentice?
<% end %>

Expand All @@ -9,6 +9,6 @@
"apprentice_over_19_second_year_onwards": "Apprentice 19 and over in your second year or onwards"
) %>

<% render_content_for :hint do %>
<% text_for :hint do %>
If you’re 19 or over and you’ve completed the first year of your apprenticeship, you’re not eligible for the apprenticeship National Minimum Wage rate. You should be paid the National Minimum Wage for your age.
<% end %>
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 %>
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 %>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% render_content_for :title do %>
<% text_for :title do %>
Do you work additional time outside your shift?
<% end %>

<% render_content_for :hint do %>
<% text_for :hint do %>
Additional time can be either starting early or finishing late outside your shift, for example attending a staff meeting or going through security checks.
<% end %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% render_content_for :title do %>
<% text_for :title do %>
Does your employer pay you for any additional time you work outside of your shift?
<% end %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% render_content_for :title do %>
<% text_for :title do %>
Did your employer take money from your pay for things you needed for your job?
<% end %>

<% render_content_for :hint do %>
<% text_for :hint do %>
This is when you've bought items needed for work yourself and have not been reimbursed. Or if the cost has been deducted from your pay.

Items include clothing, uniforms, tools or other equipment you need for your job.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% render_content_for :title do %>
<% text_for :title do %>
Does your employer take money from your pay for things you need for your job?
<% end %>

<% render_content_for :hint do %>
<% text_for :hint do %>
This is when you've bought items needed for work yourself and have not been reimbursed. Or if the cost has been deducted from your pay.

Items include clothing, uniforms, tools or other equipment you need for your job.
Expand Down
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
Loading

0 comments on commit a0518a5

Please sign in to comment.