-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HOFF-738: Session timeout warning(sign in required)
- add showSaveAndExit locals to session-timeout-warning.html to set content to be used by save and exit forms - add default save-and-exit html template - set showSaveAndExit locals to true on /dob step in sandbox/index.js for demo purposes. - add save-and-exit.html to sandbox for demo purposes - amend sandbox/pages.json to include flag for save and exit content - add config to customise save and exit page - add relevant tests - amend sessionDialog.js so it can pick up configured warning text instead of it being hard coded - amend changelog - add baseurl to exit href - add base url to /session-timeout in session-timeout-warning.html
- Loading branch information
1 parent
db0b465
commit 0527d97
Showing
14 changed files
with
123 additions
and
15 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
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
4 changes: 4 additions & 0 deletions
4
frontend/template-partials/translations/src/en/save-and-exit.json
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,4 @@ | ||
{ | ||
"header": "You have been signed out", | ||
"message": "Any answers you saved have not been affected. You can sign back in to your application by returning to the <a href='/' class='govuk-link'>start page</a>." | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{<layout}} | ||
{{$journeyHeader}} | ||
{{#t}}journey.header{{/t}} | ||
{{/journeyHeader}} | ||
|
||
{{$propositionHeader}} | ||
{{> partials-navigation}} | ||
{{/propositionHeader}} | ||
|
||
{{$header}} | ||
{{header}} | ||
{{/header}} | ||
|
||
{{$content}} | ||
<p>{{#saveExitFormContent}}{{#t}}pages.save-and-exit.message{{/t}}{{/saveExitFormContent}}{{^saveExitFormContent}}{{{message}}}{{/saveExitFormContent}}</p> | ||
{{/content}} | ||
{{/layout}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{<layout}} | ||
{{$journeyHeader}} | ||
{{#t}}journey.header{{/t}} | ||
{{/journeyHeader}} | ||
|
||
{{$propositionHeader}} | ||
{{> partials-navigation}} | ||
{{/propositionHeader}} | ||
|
||
{{$header}} | ||
{{header}} | ||
{{/header}} | ||
|
||
{{$content}} | ||
<p>{{#t}}pages.save-and-exit.paragraph-1{{/t}}</p> | ||
<p>{{#t}}pages.save-and-exit.paragraph-2{{/t}}</p> | ||
<p>{{#t}}pages.save-and-exit.paragraph-3{{/t}}</p> | ||
{{/content}} | ||
{{/layout}} |
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