Skip to content

Commit 28fb339

Browse files
committed
Set the all-smart-answer-questions answer as an example
This uses the new text_for & govspeak_for helpers and drops the .govspeak extension from the filename.
1 parent a87ef94 commit 28fb339

18 files changed

+80
-80
lines changed

lib/smart_answer_flows/all-smart-answer-questions/all_smart_answer_questions.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/all_smart_answer_questions.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<% render_content_for :meta_description do %>
1+
<% text_for :meta_description do %>
22
Do SEO magic here.
33
<% end %>
44

5-
<% render_content_for :title do %>
5+
<% text_for :title do %>
66
All Smart Answer questions
77
<% end %>
88

9-
<% render_content_for :body do %>
9+
<% govspeak_for :body do %>
1010
This flow shows all the different question types for Smart Answers.
1111
You can [peek at the results](/all-smart-answer-questions/y/mithrandir,olorin,tharkun/mordor/2019-01-01/1900-01-01/2020-02-29/0000-12-25/9999999.0/four/yes/WC2B%206NH/500000.0-month/world/0/0.5) and access all the different question types individually via changing the previous answers.
1212
<% end %>
1313

14-
<% render_content_for :post_body do %>
14+
<% govspeak_for :post_body do %>
1515
Enjoy!
1616
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/outcomes/outcome.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/outcomes/outcome.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Congratulations
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
You managed to get through all the questions.
77
<% end %>
88

9-
<% render_content_for :next_steps do %>
9+
<% govspeak_for :next_steps do %>
1010
Now you can close the browser. Or not.
1111
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/how_much_money.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/how_much_money.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Money question: How much does the world cost?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77
<% end %>
88

9-
<% render_content_for :suffix_label do %>
9+
<% text_for :suffix_label do %>
1010
this year
1111
<% end %>
1212

13-
<% render_content_for :error_message do %>
13+
<% text_for :error_message do %>
1414
It's gotta be more than that!
1515
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/how_much_salary.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/how_much_salary.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Salary question: What would you like your salary to be?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and govspeak
99
<% end %>
1010

11-
<% render_content_for :hint do %>
11+
<% text_for :hint do %>
1212
This is a hint
1313
<% end %>
1414

15-
<% render_content_for :error_message do %>
15+
<% text_for :error_message do %>
1616
Really, not more?
1717
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_boolean_choice.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_boolean_choice.erb

Lines changed: 4 additions & 4 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
Multiple choice (yes/no): Would you like to see the other questions?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and govspeak
99
<% end %>
1010

11-
<% render_content_for :hint do %>
11+
<% text_for :hint do %>
1212
This is a hint
1313
<% end %>
1414

@@ -17,6 +17,6 @@
1717
"no": "No"
1818
) %>
1919

20-
<% render_content_for :error_message do %>
20+
<% text_for :error_message do %>
2121
Of course you would!
2222
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_checkboxes.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_checkboxes.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Checkbox question: What are other names for Gandalf?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- also formatting in a govspeak style
99
- like this
1010
<% end %>
1111

12-
<% render_content_for :post_body do %>
12+
<% govspeak_for :post_body do %>
1313
Post body can contain less important information.
1414
<% end %>
1515

@@ -21,10 +21,10 @@
2121
"elrohir": "Elrohir"
2222
) %>
2323

24-
<% render_content_for :hint do %>
24+
<% text_for :hint do %>
2525
This is a hint
2626
<% end %>
2727

28-
<% render_content_for :error_message do %>
28+
<% text_for :error_message do %>
2929
It's neither Elrohir nor Radagast.
3030
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_choice.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_choice.erb

Lines changed: 4 additions & 4 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
Multiple choice: Which of these numbers is not a prime number?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and govspeak
99
<% end %>
1010

11-
<% render_content_for :hint do %>
11+
<% text_for :hint do %>
1212
This is a hint
1313
<% end %>
1414

@@ -19,6 +19,6 @@
1919
"four": "Four"
2020
) %>
2121

22-
<% render_content_for :error_message do %>
22+
<% text_for :error_message do %>
2323
4 is divisible by 2.
2424
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_country.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_country.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Country select: Where are you now?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and also govspeak
99
<% end %>
1010

11-
<% render_content_for :error_message do %>
11+
<% text_for :error_message do %>
1212
You are currently in a fictional country?
1313
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_date.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_date.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Date question: What date is tomorrow?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and maybe govspeak
99
<% end %>
1010

11-
<% render_content_for :error_message do %>
11+
<% text_for :error_message do %>
1212
That's not tomorrow.
1313
<% end %>

lib/smart_answer_flows/all-smart-answer-questions/questions/which_date_of_birth.govspeak.erb renamed to lib/smart_answer_flows/all-smart-answer-questions/questions/which_date_of_birth.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<% render_content_for :title do %>
1+
<% text_for :title do %>
22
Date question: What is your date of birth?
33
<% end %>
44

5-
<% render_content_for :body do %>
5+
<% govspeak_for :body do %>
66
Body can contain further explanations.
77

88
- and govspeak
99
<% end %>
1010

11-
<% render_content_for :error_message do %>
11+
<% text_for :error_message do %>
1212
You haven't been born yet.
1313
<% end %>

0 commit comments

Comments
 (0)