-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faith non catholic flow #7235
base: faith-schools-flow
Are you sure you want to change the base?
Faith non catholic flow #7235
Conversation
@@ -20,7 +18,7 @@ def update | |||
job_application.update(update_params.except(:teacher_reference_number, :has_teacher_reference_number)) | |||
update_or_create_jobseeker_profile! if step == :professional_status | |||
|
|||
if redirect_to_review? && (step_process.last_of_group? || (step == :following_religion && !job_application.following_religion)) | |||
if redirect_to_review? && (step_process.last_of_group? || (step.in?(%i[catholic_following_religion non_catholic_following_religion]) && !job_application.following_religion)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, maybe we can give this condition a name to clarify its intent?
private | ||
|
||
def catholic_steps(job_application) | ||
if job_application.following_religion || job_application.following_religion.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this always going to be truthy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no - it can be false. It's a tri-state - wasn't sure if it was the correct approach...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done @starswan. This must have a been a hell of beast to crack. I'm not sure it's possible to refactor the application form without reworking the whole thing from scratch.
Review app deployed to https://teaching-vacancies-review-pr-7235.test.teacherservices.cloud on AKS |
71ff8ea
to
aa7b127
Compare
<p class="govuk-hint">Make sure your referee has consented to providing a reference.</p> | ||
jobseekers_job_application_non_catholic_religion_details_form: | ||
faith: For example, Christian. | ||
place_of_worship: For example, Westminster Abbey, Dean's Yard, London. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably remove this hint text? @starswan
3261421
to
d03f02e
Compare
75e40b0
to
483fa8b
Compare
d03f02e
to
7ebf923
Compare
483fa8b
to
89cce6a
Compare
Trello card URL
https://trello.com/c/MEfKqiY0/1326-faith-schools-add-religious-information-section-cofe-flow-middle-radio
Changes in this PR:
Screenshots of UI changes:
Before
After
Next steps:
Terraform deployment required?
New development configuration to be shared?