-
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.
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.
- Loading branch information
Showing
18 changed files
with
80 additions
and
80 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...s/all_smart_answer_questions.govspeak.erb → ...-questions/all_smart_answer_questions.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,16 +1,16 @@ | ||
<% render_content_for :meta_description do %> | ||
<% text_for :meta_description do %> | ||
Do SEO magic here. | ||
<% end %> | ||
|
||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
All Smart Answer questions | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
This flow shows all the different question types for Smart Answers. | ||
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. | ||
<% end %> | ||
|
||
<% render_content_for :post_body do %> | ||
<% govspeak_for :post_body do %> | ||
Enjoy! | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...r-questions/outcomes/outcome.govspeak.erb → ...art-answer-questions/outcomes/outcome.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 %> | ||
Congratulations | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
You managed to get through all the questions. | ||
<% end %> | ||
|
||
<% render_content_for :next_steps do %> | ||
<% govspeak_for :next_steps do %> | ||
Now you can close the browser. Or not. | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
...ons/questions/how_much_money.govspeak.erb → ...er-questions/questions/how_much_money.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 %> | ||
Money question: How much does the world cost? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
<% end %> | ||
|
||
<% render_content_for :suffix_label do %> | ||
<% text_for :suffix_label do %> | ||
this year | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
It's gotta be more than that! | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
...ns/questions/how_much_salary.govspeak.erb → ...r-questions/questions/how_much_salary.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,17 +1,17 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Salary question: What would you like your salary to be? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and govspeak | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
This is a hint | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
Really, not more? | ||
<% end %> |
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
6 changes: 3 additions & 3 deletions
6
...ions/questions/which_country.govspeak.erb → ...wer-questions/questions/which_country.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,13 +1,13 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Country select: Where are you now? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and also govspeak | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
You are currently in a fictional country? | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...estions/questions/which_date.govspeak.erb → ...answer-questions/questions/which_date.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,13 +1,13 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Date question: What date is tomorrow? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and maybe govspeak | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
That's not tomorrow. | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...uestions/which_date_of_birth.govspeak.erb → ...estions/questions/which_date_of_birth.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,13 +1,13 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Date question: What is your date of birth? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and govspeak | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
You haven't been born yet. | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...estions/which_date_this_year.govspeak.erb → ...stions/questions/which_date_this_year.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,13 +1,13 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Date question: When is Christmas this year? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and govspeak | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
That's not Christmas. | ||
<% end %> |
6 changes: 3 additions & 3 deletions
6
...ions/which_date_within_range.govspeak.erb → ...ons/questions/which_date_within_range.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,13 +1,13 @@ | ||
<% render_content_for :title do %> | ||
<% text_for :title do %> | ||
Date question: When will be the next 29 February? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
|
||
- and govspeak | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
That's not a leap year. | ||
<% end %> |
15 changes: 15 additions & 0 deletions
15
lib/smart_answer_flows/all-smart-answer-questions/questions/which_float.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% text_for :title do %> | ||
Value/float question: What is 1/2? | ||
<% end %> | ||
|
||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
<% end %> | ||
|
||
<% text_for :label do %> | ||
Number | ||
<% end %> | ||
|
||
<% text_for :error_message do %> | ||
0.5 | ||
<% end %> |
15 changes: 0 additions & 15 deletions
15
lib/smart_answer_flows/all-smart-answer-questions/questions/which_float.govspeak.erb
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...ions/questions/which_integer.govspeak.erb → ...wer-questions/questions/which_integer.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 %> | ||
Value/integer question: How many software engineers does it take to change a light bulb? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
None. That's a hardware problem. Or: The light bulb works fine on the system in my office. Or: Darkness is working as intended. | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
...ons/questions/which_postcode.govspeak.erb → ...er-questions/questions/which_postcode.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 %> | ||
Postcode question: Where is Aviation House? | ||
<% end %> | ||
|
||
<% render_content_for :body do %> | ||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
<% end %> | ||
|
||
<% render_content_for :hint do %> | ||
<% text_for :hint do %> | ||
This is a hint | ||
<% end %> | ||
|
||
<% render_content_for :error_message do %> | ||
<% text_for :error_message do %> | ||
It's WC2B 6NH. | ||
<% end %> |
15 changes: 15 additions & 0 deletions
15
lib/smart_answer_flows/all-smart-answer-questions/questions/which_value.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% text_for :title do %> | ||
Value question: "Hello ..."? | ||
<% end %> | ||
|
||
<% govspeak_for :body do %> | ||
Body can contain further explanations. | ||
<% end %> | ||
|
||
<% text_for :suffix_label do %> | ||
! | ||
<% end %> | ||
|
||
<% text_for :error_message do %> | ||
"world" | ||
<% end %> |
15 changes: 0 additions & 15 deletions
15
lib/smart_answer_flows/all-smart-answer-questions/questions/which_value.govspeak.erb
This file was deleted.
Oops, something went wrong.