-
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
Moj multi upload #7448
base: main
Are you sure you want to change the base?
Moj multi upload #7448
Conversation
9cbdb30
to
d86ce30
Compare
Review app deployed to https://teaching-vacancies-review-pr-7448.test.teacherservices.cloud on AKS |
8e0b981
to
68da99e
Compare
@@ -69,3 +69,15 @@ Rails.start(); | |||
govukFrontend.initAll(); | |||
window.$ = $; | |||
mojFrontend.initAll(); | |||
|
|||
if (typeof mojFrontend.MultiFileUpload !== 'undefined') { |
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.
Are we sure this is the right place?
Could we add a multifile_upload.js
or add it to utils.js
?
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 sure - it ought to be in the MoJ library init...
@@ -1,6 +1,5 @@ | |||
class Publishers::JobListing::DocumentsForm < Publishers::JobListing::VacancyForm | |||
validates :supporting_documents, form_file: DOCUMENT_VALIDATION_OPTIONS | |||
validate :document_presence | |||
validates :supporting_documents, presence: true, if: -> { vacancy.include_additional_documents } |
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.
nice
Trello card URL
https://trello.com/c/2jvmL1ZP/1458-change-to-moj-document-upload-component-for-uploading-additional-documents
Changes in this PR:
Use MoJ multi-file upload for additional document upload
Screenshots of UI changes:
Before
After
Next steps:
Terraform deployment required?
New development configuration to be shared?