Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Moj multi upload #7448

wants to merge 4 commits into from

Conversation

starswan
Copy link
Contributor

@starswan starswan commented Jan 27, 2025

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

UploadBefoe

After

NewUpload

Next steps:

  • Terraform deployment required?

  • New development configuration to be shared?

Copy link

Review app deployed to https://teaching-vacancies-review-pr-7448.test.teacherservices.cloud on AKS

@starswan starswan marked this pull request as ready for review January 28, 2025 12:53
@@ -69,3 +69,15 @@ Rails.start();
govukFrontend.initAll();
window.$ = $;
mojFrontend.initAll();

if (typeof mojFrontend.MultiFileUpload !== 'undefined') {
Copy link
Contributor

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?

Copy link
Contributor Author

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 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants