-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add create html for upload passport - add content in pages.json - add section in summary-data-section - update index.js with the new page - add in validation.json and config.js max limit error message in case limit increase more than 1.
- Loading branch information
1 parent
8db83fa
commit db95192
Showing
7 changed files
with
111 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"header": "Explosives precursors and poisons licensing", | ||
"phase": "beta", | ||
"serviceName": "Amend an explosives and precursor chemicals licence" | ||
"serviceName": "Amend an explosives and precursor chemicals licence", | ||
"error": "Error" | ||
} |
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,48 @@ | ||
{{<partials-page}} | ||
{{$encoding}}enctype="multipart/form-data" name="file-upload-form" {{/encoding}} | ||
{{$page-content}} | ||
<p>{{#t}}pages.upload-passport.paragraph1{{/t}} | ||
<a class="govuk-link" href="{{#t}}pages.upload-passport.link{{/t}}" rel="noreferrer noopener" target="_blank">{{#t}}pages.upload-passport.link-text{{/t}}</a> | ||
</p> | ||
<div class="govuk-form-group" id="hofFileUpload"> | ||
<label class="govuk-label" for="file-upload"> | ||
<h2>{{#t}}pages.upload-passport.label{{/t}}</h2> | ||
<span class="govuk-hint">{{#t}}pages.upload-passport.hint{{/t}}</span> | ||
</label> | ||
<p id="file-upload-error-maxFileSize" class="govuk-error-message govuk-!-display-none"> | ||
<span id="validation-error" class="govuk-visually-hidden">{{#t}}journey.error{{/t}}:</span> {{#t}}validation.file-upload.maxFileSize{{/t}} | ||
</p> | ||
<p id="file-upload-error-fileType" class="govuk-error-message govuk-!-display-none"> | ||
<span id="validation-error" class="govuk-visually-hidden">{{#t}}journey.error{{/t}}:</span> {{#t}}validation.file-upload.fileType{{/t}} | ||
</p> | ||
<input class="govuk-file-upload" id="file-upload" name="file-upload" type="file" value="amend-passport"> | ||
<div id="upload-page-loading-spinner" class="spinner-container"> | ||
<div class="spinner-loader"></div> | ||
<span class="spinner-message">{{#t}}pages.upload-passport.uploading-document{{/t}}</span> | ||
</div> | ||
</div> | ||
{{^values.amend-passport}} | ||
<h2 class="govuk-heading-m">{{#t}}pages.upload-passport.not-uploaded{{/t}}</h2> | ||
{{/values.amend-passport}} | ||
{{#values.amend-passport.length}} | ||
<br> | ||
<h2 class="govuk-heading-m">{{#t}}pages.upload-passport.uploaded{{/t}}</h2> | ||
<div id="uploaded-documents" class="govuk-width-container"> | ||
{{#values.amend-passport}} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-three-quarters"> | ||
{{name}} | ||
</div> | ||
<div class="govuk-grid-column-one-quarter"> | ||
<a href="?delete={{id}}" class="govuk-link">{{#t}}buttons.remove{{/t}}</a> | ||
</div> | ||
</div> | ||
<div class="file-upload-hrline"></div> | ||
{{/values.amend-passport}} | ||
</div> | ||
{{/values.amend-passport.length}} | ||
<button class="govuk-button" name="requireFileUpload" value="amend-passport"> | ||
{{#t}}buttons.continue{{/t}} | ||
</button> | ||
{{/page-content}} | ||
{{/partials-page}} |
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