-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow candidate to edit work histories
We want to allow the candidate to edit their work histories, this will only edit work experiences, volunteering_experiences and work history breaks on the application form. The application choices that are submitted will still have the old work histories. This is because each submitted application choice has its own work history. So the user will be able to edit their work histories but only for new application choices.
- Loading branch information
1 parent
02de77c
commit 7d5be4e
Showing
9 changed files
with
105 additions
and
10 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
app/components/candidate_interface/editable_section_warning.html.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,7 +1,9 @@ | ||
<div class="govuk-inset-text"> | ||
<% if @section_policy.personal_statement? %> | ||
Any changes you make to your personal statement will not be included in applications you have already submitted. | ||
<%= t('editable_section_warning.personal_statement') %> | ||
<% elsif @section_policy.work_history? %> | ||
<%= t('editable_section_warning.work_history') %> | ||
<% else %> | ||
Any changes you make will be included in applications you have already submitted. | ||
<%= t('editable_section_warning.default') %> | ||
<% end %> | ||
</div> |
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
5 changes: 5 additions & 0 deletions
5
config/locales/components/candidate_interface/editable_section_warning.yml
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,5 @@ | ||
en: | ||
editable_section_warning: | ||
personal_statement: Any changes you make to your personal statement will not be included in applications you have already submitted. | ||
default: Any changes you make will be included in applications you have already submitted. | ||
work_history: Any changes you make will not be included in applications you have already submitted. |
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
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