-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New town/county work location question for the NISRA employment secti…
…on (#113)
- Loading branch information
Showing
6 changed files
with
264 additions
and
2 deletions.
There are no files selected for viewing
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
70 changes: 70 additions & 0 deletions
70
source/jsonnet/northern-ireland/individual/blocks/employment/town_and_county.jsonnet
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,70 @@ | ||
local placeholders = import '../../../lib/placeholders.libsonnet'; | ||
local rules = import 'rules.libsonnet'; | ||
|
||
local question(title) = { | ||
id: 'work-town-and-county-question', | ||
title: title, | ||
type: 'General', | ||
answers: [ | ||
{ | ||
id: 'work-town-and-county-answer-town', | ||
label: 'Town or city', | ||
mandatory: false, | ||
max_length: 100, | ||
type: 'TextField', | ||
}, | ||
{ | ||
id: 'work-town-and-county-answer-county', | ||
label: 'County', | ||
mandatory: false, | ||
max_length: 100, | ||
type: 'TextField', | ||
}, | ||
], | ||
}; | ||
|
||
local nonProxyTitle = 'In which town and county is your main place of work?'; | ||
local proxyTitle = { | ||
text: 'In which town and county is <em>{person_name_possessive}</em> main place of work?', | ||
placeholders: [ | ||
placeholders.personNamePossessive, | ||
], | ||
}; | ||
|
||
local pastNonProxyTitle = 'In which town and county was your main place of work?'; | ||
local pastProxyTitle = { | ||
text: 'In which town and county was <em>{person_name_possessive}</em> main place of work?', | ||
placeholders: [ | ||
placeholders.personNamePossessive, | ||
], | ||
}; | ||
|
||
{ | ||
type: 'Question', | ||
id: 'work-town-and-county', | ||
question_variants: [ | ||
{ | ||
question: question(nonProxyTitle), | ||
when: [rules.isNotProxy, rules.mainJob], | ||
}, | ||
{ | ||
question: question(proxyTitle), | ||
when: [rules.isProxy, rules.mainJob], | ||
}, | ||
{ | ||
question: question(pastNonProxyTitle), | ||
when: [rules.isNotProxy], | ||
}, | ||
{ | ||
question: question(pastProxyTitle), | ||
when: [rules.isProxy], | ||
}, | ||
], | ||
routing_rules: [ | ||
{ | ||
goto: { | ||
block: 'work-travel', | ||
}, | ||
}, | ||
], | ||
} |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2020-06-30 15:59+0100\n" | ||
"POT-Creation-Date: 2020-07-02 10:15+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -1182,6 +1182,26 @@ msgstr "" | |
msgid "In which country was <em>{person_name_possessive}</em> main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "In which town and county is your main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "In which town and county was your main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "What is the address of your main place of work?" | ||
msgstr "" | ||
|
@@ -2584,6 +2604,54 @@ msgctxt "In which country was <em>{person_name_possessive}</em> main place of wo | |
msgid "Current name of country" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county is your main place of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county is your main place of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county was your main place of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county was your main place of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "What is the address of your main place of work?" | ||
msgid "Address line 1" | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2020-06-30 15:59+0100\n" | ||
"POT-Creation-Date: 2020-07-02 10:15+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -836,6 +836,26 @@ msgstr "" | |
msgid "In which country was <em>{person_name_possessive}</em> main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "In which town and county is your main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "In which town and county was your main place of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgstr "" | ||
|
||
#. Question text | ||
msgid "What is the address of your main place of work?" | ||
msgstr "" | ||
|
@@ -1800,6 +1820,54 @@ msgctxt "In which country was <em>{person_name_possessive}</em> main place of wo | |
msgid "Current name of country" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county is your main place of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county is your main place of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county is <em>{person_name_possessive}</em> main place " | ||
"of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county was your main place of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "In which town and county was your main place of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgid "Town or city" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "" | ||
"In which town and county was <em>{person_name_possessive}</em> main place" | ||
" of work?" | ||
msgid "County" | ||
msgstr "" | ||
|
||
#. Answer | ||
msgctxt "What is the address of your main place of work?" | ||
msgid "Address line 1" | ||
|