Skip to content

Commit

Permalink
Update Census Individual Page Titles - ENG/WLS (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
MebinAbraham authored Sep 17, 2020
1 parent bad24d3 commit d4fb94e
Show file tree
Hide file tree
Showing 89 changed files with 775 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local proxyGuidanceHeader = 'Why we ask this question if they are retired or lon
{
type: 'Question',
id: 'about-to-start-job',
page_title: 'Waiting to start a job already accepted',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceHeader),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ local proxyDescription = 'Their answer will help their local community by provid
{
type: 'Question',
id: 'armed-forces',
page_title: 'Served in the UK Armed Forces',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceHeader, nonProxyDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'available-for-work',
page_title: 'Available to start work in the next two weeks',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ local pastOption = 'No organisation or worked for a private individual';
{
type: 'Question',
id: 'business-name',
page_title: 'Business name',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDescription, nonProxyoption),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ local question(title, region_code) = (
function(region_code) {
type: 'Question',
id: 'business-type',
page_title: 'Business type',
question_variants: [
{
question: question(nonProxyTitle, region_code),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ local proxyGuidanceContent = [
{
type: 'Question',
id: 'depot-address',
page_title: 'Depot address',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceHeader, nonProxyGuidanceContent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ local proxyAnswerDescription = 'Freelance means that they are self-employed and
{
type: 'Question',
id: 'employment-status-last-seven-days',
page_title: 'Employment status in the last seven days',
question_variants: [
{
question: question(nonProxyTitle, nonProxyAnswerDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ local proxyLabel = 'No, has never worked';
{
type: 'Question',
id: 'ever-worked',
page_title: 'Ever done any paid work',
question_variants: [
{
question: question(nonProxyTitle, nonProxyLabel),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'hours-worked',
page_title: 'Hours worked',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ local pastProxyTitle = {
{
type: 'Question',
id: 'job-description',
page_title: 'Job description',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ local proxyDescription = 'For example, retail assistant, office cleaner, distric
{
type: 'Question',
id: 'job-title',
page_title: 'Job title',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local proxyGuidanceHeader = 'Why we ask this question if they are retired or lon
{
type: 'Question',
id: 'looking-for-work',
page_title: 'Looking for paid work',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceHeader),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local rules = import 'rules.libsonnet';
{
type: 'Interstitial',
id: 'main-job-introduction',
page_title: 'Introduction to main job questions',
content_variants: [
{
content: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ local pastProxyAnswerDescription = 'Freelance means that they were self-employed
{
type: 'Question',
id: 'main-job-status',
page_title: 'Main job employment status',
question_variants: [
{
question: question(nonProxyTitle, nonProxyQuestionDescription, nonProxyAnswerDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'mainly-work-in-uk',
page_title: 'Mainly work in the UK',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'mainly-work-outside-uk',
page_title: 'Mainly work outside the UK',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'not-employed-status-last-seven-days',
page_title: 'Not employed status in the last seven days',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ local pastProxyTitle = {
{
type: 'Question',
id: 'supervise-others',
page_title: 'Supervise other employees',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ local proxyDescription = 'Answer for the longest part, <em>by distance</em>, of
{
type: 'Question',
id: 'travel-to-work',
page_title: 'Travel to work',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ local proxyGuidanceContent = [
{
type: 'Question',
id: 'workplace-address',
page_title: 'Workplace address',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceHeader, nonProxyGuidanceContent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'workplace-type',
page_title: 'Type of workplace',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidanceContent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'address-one-year-ago',
page_title: 'Address one year ago',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ local question(title) = {
{
type: 'Question',
id: 'address-one-year-ago-outside-uk',
page_title: 'Address one year ago outside UK',
question_variants: [
{
question: question('In which country outside the UK was your usual address one year ago?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ local proxyTitle = {
function(region_code, census_month_year_date) {
type: 'Question',
id: 'arrive-in-uk',
page_title: 'Arrived to live in the UK',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ local question(title, region_code, elsewhereDescription) = (
function(region_code) {
type: 'Question',
id: 'country-of-birth',
page_title: 'Country of birth',
question_variants: [
{
question: question(nonProxyTitle, region_code, 'You can enter your country of birth on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ local question(title) = {
{
type: 'Question',
id: 'country-of-birth-elsewhere',
page_title: 'Country of birth outside UK',
question_variants: [
{
question: question('You selected “Elsewhere”. What is your country of birth?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function(region_code) (
{
type: 'Question',
id: 'ethnic-group',
page_title: 'Ethnic group',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidance, nonProxyDescription, region_code),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ local question(englandTitle, walesTitle, region_code, guidance, definitionDescri
}
);

local englandPageTitle = 'Asian or Asian British ethnic group or background';
local nonProxyEnglandTitle = 'Which one best describes your Asian or Asian British ethnic group or background?';
local proxyEnglandTitle = {
text: 'Which one best describes <em>{person_name_possessive}</em> Asian or Asian British ethnic group or background?',
placeholders: [
placeholders.personNamePossessive,
],
};

local walesPageTitle = 'Asian, Asian Welsh or Asian British ethnic group or background';
local nonProxyWalesTitle = 'Which one best describes your Asian, Asian Welsh or Asian British ethnic group or background?';
local proxyWalesTitle = {
text: 'Which one best describes <em>{person_name_possessive}</em> Asian, Asian Welsh or Asian British ethnic group or background?',
Expand All @@ -77,6 +80,7 @@ local proxyWalesTitle = {
function(region_code) {
type: 'Question',
id: 'asian-or-asian-british-ethnic-group',
page_title: if region_code == 'GB-WLS' then walesPageTitle else englandPageTitle,
question_variants: [
{
question: question(nonProxyEnglandTitle, nonProxyWalesTitle, region_code, nonProxyGuidance, nonProxyDefinitionDescription, 'You can enter your ethnic group or background on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local proxyTitle = {
function(region_code) {
type: 'Question',
id: 'other-asian-or-asian-british-ethnic-group',
page_title: 'Other Asian or Asian British ethnic group or background',
question_variants: [
{
question: question(nonProxyTitle, region_code),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ local question(englandTitle, walesTitle, region_code, guidance, definitionDescri
}
);

local englandPageTitle = 'Black, Black British, Caribbean or African ethnic group or background';
local nonProxyEnglandTitle = 'Which one best describes your Black, Black British, Caribbean or African ethnic group or background?';
local proxyEnglandTitle = {
text: 'Which one best describes <em>{person_name_possessive}</em> Black, Black British, Caribbean or African ethnic group or background?',
placeholders: [
placeholders.personNamePossessive,
],
};

local walesPageTitle = 'Black, Black Welsh, Black British, Caribbean or African ethnic group or background';
local nonProxyWalesTitle = 'Which one best describes your Black, Black Welsh, Black British, Caribbean or African ethnic group or background?';
local proxyWalesTitle = {
text: 'Which one best describes <em>{person_name_possessive}</em> Black, Black Welsh, Black British, Caribbean or African ethnic group or background?',
Expand All @@ -73,6 +76,7 @@ function(region_code) (
{
type: 'Question',
id: 'black-black-british-caribbean-or-african-ethnic-group',
page_title: if region_code == 'GB-WLS' then walesPageTitle else englandPageTitle,
question_variants: [
{
question: question(nonProxyEnglandTitle, nonProxyWalesTitle, region_code, nonProxyGuidance, nonProxyDefinitionDescription, 'You can enter your ethnic group or background on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ local question(title) = {
{
type: 'Question',
id: 'ethnic-group-black-african',
page_title: 'Other African ethnic group or background',
question_variants: [
{
question: question('You selected “African”. How would you describe your African ethnic group or background?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local proxyTitle = {
function(region_code) {
type: 'Question',
id: 'other-black-black-british-caribbean-or-african-ethnic-group',
page_title: 'Other Black, Black British or Caribbean ethnic group or background',
question_variants: [
{
question: question(nonProxyTitle, region_code),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'mixed-or-multiple-ethnic-group',
page_title: 'Mixed or Multiple ethnic group or background',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidance, nonProxyDefinitionDescription, 'You can enter your ethnic group or background on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ local question(title) = {
{
type: 'Question',
id: 'other-mixed-or-multiple-ethnic-group',
page_title: 'Other Mixed or Multiple ethnic group or background',
question_variants: [
{
question: question('You selected “Any other Mixed or Multiple background”. How would you describe your Mixed or Multiple ethnic group or background?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'other-ethnic-group',
page_title: 'Other ethnic group or background',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidance, nonProxyDefinitionDescription, 'You can enter your ethnic group or background on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ local question(title) = {
{
type: 'Question',
id: 'ethnic-group-other-other',
page_title: 'Other ethnic group or background describe',
question_variants: [
{
question: question('You selected “Any other ethnic group”. How would you describe your ethnic group or background?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ local question(title, guidance, description, region_code, whiteBackgroundDescrip
function(region_code) {
type: 'Question',
id: 'white-ethnic-group',
page_title: 'White ethnic group or background',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidance, nonProxyDescription, region_code, 'You can enter your ethnic group or background on the next question'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ local question(title) = {
{
type: 'Question',
id: 'ethnic-group-white-other',
page_title: 'Other White ethnic group or background',
question_variants: [
{
question: question('You selected “Any other White background”. How would you describe your White ethnic group or background?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'gender-identity',
page_title: 'Gender identity',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'health',
page_title: 'General health',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local proxyDefinitionContent = [
{
type: 'Question',
id: 'health-conditions-or-illnesses',
page_title: 'Health conditions or illnesses',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDefinitionContent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ local proxyDefinition = {
{
type: 'Question',
id: 'health-conditions-or-illnesses-limitations',
page_title: 'Health conditions or illnesses that reduce activity',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDefinition),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ local proxyTitle = {
{
type: 'Question',
id: 'length-of-stay-in-uk',
page_title: 'Planned length of stay in the UK',
question_variants: [
{
question: question(nonProxyTitle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local proxyDescription = 'If they had no usual address one year ago, select the
{
type: 'Question',
id: 'location-one-year-ago',
page_title: 'Location one year ago',
question_variants: [
{
question: question(nonProxyTitle, nonProxyDescription),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ local proxyGuidance = 'Exclude anything they do as part of their paid employment
{
type: 'Question',
id: 'look-after-or-support-others',
page_title: 'Look after or support others',
question_variants: [
{
question: question(nonProxyTitle, nonProxyGuidance),
Expand Down
Loading

0 comments on commit d4fb94e

Please sign in to comment.