-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1977 from alphagov/convert-pay-leave-for-parents-…
…to-single-question-per-page Convert pay-leave-for-parents to single question per page
- Loading branch information
Showing
26 changed files
with
1,155 additions
and
1,140 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
38 changes: 0 additions & 38 deletions
38
lib/smartdown_flows/pay-leave-for-parents/questions/employment_1.txt
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
lib/smartdown_flows/pay-leave-for-parents/questions/employment_1_more.txt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
lib/smartdown_flows/pay-leave-for-parents/questions/employment_1_more_salary.txt
This file was deleted.
Oops, something went wrong.
222 changes: 0 additions & 222 deletions
222
lib/smartdown_flows/pay-leave-for-parents/questions/employment_2.txt
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
lib/smartdown_flows/pay-leave-for-parents/questions/employment_2_more.txt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
lib/smartdown_flows/pay-leave-for-parents/questions/employment_both.txt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_1a.txt
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,9 @@ | ||
# Mother’s employment details | ||
|
||
# Did the mother start her current or most recent job before %{continuity_start_date(due_date)}? | ||
|
||
[choice: mother_started_working_before_continuity_start_date] | ||
* yes: Yes | ||
* no: No | ||
|
||
* otherwise => employment_details_of_mother_1b |
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_1b.txt
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,9 @@ | ||
# Mother’s employment details | ||
|
||
# Was the mother (or will she be) still working in that job on %{continuity_end_date(due_date)}? | ||
|
||
[choice: mother_still_working_on_continuity_end_date] | ||
* yes: Yes | ||
* no: No | ||
|
||
* otherwise => employment_details_of_mother_1c |
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_1c.txt
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,9 @@ | ||
# Mother’s employment details | ||
|
||
# How much does the mother earn (or did she earn, if she’s left her job)? | ||
|
||
[salary: mother_salary] | ||
|
||
This is her total take-home pay before any deductions, eg tax. | ||
|
||
* otherwise => employment_details_of_mother_1d |
20 changes: 20 additions & 0 deletions
20
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_1d.txt
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,20 @@ | ||
# Mother’s employment details | ||
|
||
# Has the mother earned (or will she have earned) more than %{lower_earnings_amount(due_date)} per week between %{lower_earnings_start_date(due_date)} and %{lower_earnings_end_date(due_date)}? | ||
|
||
[choice: mother_earned_more_than_lower_earnings_limit] | ||
* yes: Yes | ||
* no: No | ||
|
||
* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND lower_earnings(mother_earned_more_than_lower_earnings_limit) | ||
* two_carers is 'no' | ||
* employment_status_of_mother is 'employee' => outcome_mat-leave_mat-pay | ||
* employment_status_of_mother is 'worker' => outcome_mat-pay | ||
* two_carers is 'yes' | ||
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a | ||
* employment_status_of_partner in {self-employed unemployed} | ||
* due_date >= '2015-4-5' => employment_details_of_partner_2a | ||
* due_date < '2015-4-5' | ||
* employment_status_of_mother is 'employee' => outcome_mat-leave_mat-pay | ||
* employment_status_of_mother is 'worker' => outcome_mat-pay | ||
* NOT continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) OR NOT lower_earnings(mother_earned_more_than_lower_earnings_limit) => employment_details_of_mother_2a |
11 changes: 11 additions & 0 deletions
11
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_2a.txt
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,11 @@ | ||
# Mother’s employment details | ||
|
||
# Did the mother work (or will she have worked) for at least 26 weeks between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}? | ||
|
||
[choice: mother_worked_at_least_26_weeks] | ||
* yes: Yes | ||
* no: No | ||
|
||
The 26 weeks don’t need to be in a row. They can be full or part weeks. | ||
|
||
* otherwise => employment_details_of_mother_2b |
28 changes: 28 additions & 0 deletions
28
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_2b.txt
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,28 @@ | ||
# Mother’s employment details | ||
|
||
# Did the mother earn (or will she have earned) a total of £390 or more in any 13 weeks between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}? | ||
|
||
[choice: mother_earned_at_least_390] | ||
* yes: Yes | ||
* no: No | ||
|
||
The 13 weeks don’t need to be in a row. | ||
|
||
* two_carers is 'no' | ||
* earnings_employment(mother_earned_at_least_390 mother_worked_at_least_26_weeks) => employment_details_of_mother_3 | ||
* employment_status_of_mother is 'employee' | ||
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-leave | ||
* mother_still_working_on_continuity_end_date is 'no' => outcome_single-birth-nothing | ||
* employment_status_of_mother in {worker self-employed unemployed} => outcome_single-birth-nothing | ||
* two_carers is 'yes' | ||
* earnings_employment(mother_earned_at_least_390 mother_worked_at_least_26_weeks) => employment_details_of_mother_3 | ||
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a | ||
* employment_status_of_partner in {self-employed unemployed} | ||
* employment_status_of_mother is 'employee' | ||
* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND due_date >= '2015-4-5' => employment_details_of_partner_2a | ||
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-leave | ||
* mother_still_working_on_continuity_end_date is 'no' => outcome_birth-nothing | ||
* employment_status_of_mother in {worker self-employed} => outcome_birth-nothing | ||
* employment_status_of_mother is 'unemployed' | ||
* employment_status_of_partner is 'self-employed' => outcome_mat-allowance-14-weeks | ||
* employment_status_of_partner is 'unemployed' => outcome_birth-nothing |
19 changes: 19 additions & 0 deletions
19
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_mother_3.txt
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,19 @@ | ||
# Mother’s salary details | ||
|
||
# How much did the mother earn between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}? | ||
|
||
[salary: salary_1_66_weeks] | ||
|
||
* two_carers is 'no' | ||
* employment_status_of_mother is 'employee' | ||
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-allowance_mat-leave | ||
* mother_still_working_on_continuity_end_date is 'no' => outcome_mat-allowance | ||
* employment_status_of_mother in {worker self-employed unemployed} => outcome_mat-allowance | ||
* two_carers is 'yes' | ||
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a | ||
* employment_status_of_partner in {self-employed unemployed} | ||
* employment_status_of_mother is 'employee' | ||
* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND due_date >= '2015-4-5' => employment_details_of_partner_2a | ||
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-allowance_mat-leave | ||
* mother_still_working_on_continuity_end_date is 'no' => outcome_mat-allowance | ||
* employment_status_of_mother in {worker self-employed unemployed} => outcome_mat-allowance |
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_partner_1a.txt
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,9 @@ | ||
# Partner’s employment details | ||
|
||
# Did the mother’s partner start their current or most recent job before %{continuity_start_date(due_date)}? | ||
|
||
[choice: partner_started_working_before_continuity_start_date] | ||
* yes: Yes | ||
* no: No | ||
|
||
* otherwise => employment_details_of_partner_1b |
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_partner_1b.txt
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,9 @@ | ||
# Partner’s employment details | ||
|
||
# Was the mother’s partner (or will they be) still working in that job on %{continuity_end_date(due_date)}? | ||
|
||
[choice: partner_still_working_on_continuity_end_date] | ||
* yes: Yes | ||
* no: No | ||
|
||
* otherwise => employment_details_of_partner_1c |
9 changes: 9 additions & 0 deletions
9
lib/smartdown_flows/pay-leave-for-parents/questions/employment_details_of_partner_1c.txt
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,9 @@ | ||
# Partner’s employment details | ||
|
||
# How much does the mother’s partner earn (or did they earn, if they’ve left their job)? | ||
|
||
[salary: partner_salary] | ||
|
||
This is their total take-home pay before any deductions, eg tax. | ||
|
||
* otherwise => employment_details_of_partner_1d |
Oops, something went wrong.