Skip to content

Commit cbd853a

Browse files
committed
Apply helpers and filenames to coronavirus finder
This serves as a demo of the new approach and the first part of the migration.
1 parent f72f9f5 commit cbd853a

13 files changed

+16
-16
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Find coronavirus financial support for your business
33
<% end %>
44

5-
<% render_content_for :meta_description do %>
5+
<% text_for :meta_description do %>
66
Coronavirus (COVID-19) support is available to employers and the
77
self-employed. You may be eligible for loans, tax relief and cash grants,
88
whether your business is open or closed.
99
<% end %>
1010

11-
<% render_content_for :body do %>
11+
<% govspeak_for :body do %>
1212
Coronavirus (COVID-19) support is available to employers and the
1313
self-employed. You may be eligible for loans, tax relief and cash grants,
1414
whether your business is open or closed.

lib/smart_answer_flows/business-coronavirus-support-finder/outcomes/results.govspeak.erb renamed to lib/smart_answer_flows/business-coronavirus-support-finder/outcomes/results.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Support you may be entitled to
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
<% if calculator.show?(:job_retention_scheme) %>
77
$CTA
88
### Coronavirus Job Retention Scheme
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
What is your annual turnover?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Where is your business based?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
How many employees does your business have?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
What is the rateable value of your business' non-domestic property?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Are you an employer with a PAYE scheme?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Is your business in receipt of small business rate relief or rural rate
33
relief as of 11 March 2020?
44
<% end %>

lib/smart_answer_flows/business-coronavirus-support-finder/questions/sectors.govspeak.erb renamed to lib/smart_answer_flows/business-coronavirus-support-finder/questions/sectors.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Is your business in any of the following sectors:
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Are you due to pay a Self Assessment payment on account by 31 July 2020?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Are you self-employed?
33
<% end %>
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
What size was your business as of 28 February?
33
<% end %>
44

lib/smart_answer_flows/business-coronavirus-support-finder/questions/business_based.govspeak.erb renamed to lib/smart_answer_flows/business-coronavirus-support-finder/questions/where_is_your_business_based.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Where is your business based?
33
<% end %>
44

0 commit comments

Comments
 (0)