From b16766ad8df0db01caf228223c4b31ab281664d8 Mon Sep 17 00:00:00 2001 From: Jeremy McDermott Date: Tue, 14 Jan 2025 15:47:28 -0400 Subject: [PATCH] BugzID: 20702 Move file upload field to bottom of form --- ...rm.webform.library_instruction_session.yml | 66 ++++++------------- 1 file changed, 20 insertions(+), 46 deletions(-) diff --git a/configuration/webform.webform.library_instruction_session.yml b/configuration/webform.webform.library_instruction_session.yml index 11a5dae8..fe2c3d81 100644 --- a/configuration/webform.webform.library_instruction_session.yml +++ b/configuration/webform.webform.library_instruction_session.yml @@ -160,23 +160,6 @@ elements: |- 'yes': 'Yes -- A library staff member will reach out to you after you submit this form to discuss details.' no_unsure: 'No / Not sure -- If you learn of an accommodation need, you can contact us after we have received your initial request.' '#required': true - upload_doc: - '#type': webform_document_file - '#title': 'Upload your syllabus and/or assignment description' - '#multiple': 2 - '#wrapper_attributes': - class: - - mb-5 - - mt-4 - '#file_extensions': 'pdf doc docx' - '#sanitize': true - '#button': true - '#button__title': 'Select file' - '#button__attributes': - class: - - btn - - btn-light - - border-secondary about_assignment: '#type': textarea '#title': 'Tell us about the assignment students will be working on' @@ -184,48 +167,39 @@ elements: |- '#wrapper_attributes': class: - mb-5 - associated_research_course_guide: - '#type': radios - '#title': 'Is there an associated Research/Course Guide?' - '#options': - 'yes': 'Yes' - 'no': 'No' - donotknow: 'Don''t know' - '#options_display': side_by_side - '#wrapper_attributes': - class: - - webform-options-display-side-by-side - - mb-4 - develop_library_course_guide: - '#type': radios - '#title': 'Would you like us to develop a library course guide?' - '#options': - 'yes': 'Yes' - 'no': 'No' - '#options_display': side_by_side - '#states': - visible: - ':input[name="associated_research_course_guide"]': - value: 'no' - '#wrapper_attributes': - class: - - webform-options-display-side-by-side - - mb-4 location: '#type': radios '#title': Location '#options': hil: 'Harriet Irving Library' - hwk: 'Hans W. Klohn Commons' classroom: Classroom/lab online: Online '#required': true + campus: + '#type': textfield + '#title': Campus '#wrapper_attributes': class: - - mb-4 + - mb-5 additional_comments: '#type': textarea '#title': 'Any additional comments?' + '#wrapper_attributes': + class: + - mb-5 + upload_doc: + '#type': webform_document_file + '#title': 'Upload your syllabus and/or assignment description' + '#multiple': 2 + '#file_extensions': 'pdf doc docx' + '#sanitize': true + '#button': true + '#button__title': 'Select file' + '#button__attributes': + class: + - btn + - btn-light + - border-secondary actions: '#type': webform_actions '#title': 'Submit button(s)'