Skip to content

Commit

Permalink
BugzID: 20702 Move file upload field to bottom of form
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Jan 14, 2025
1 parent faf611d commit b16766a
Showing 1 changed file with 20 additions and 46 deletions.
66 changes: 20 additions & 46 deletions configuration/webform.webform.library_instruction_session.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,72 +160,46 @@ 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<span class="fa-solid fa-paperclip ml-1"></span>'
'#button__attributes':
class:
- btn
- btn-light
- border-secondary
about_assignment:
'#type': textarea
'#title': 'Tell us about the assignment students will be working on'
'#description': 'Briefly describe the assignment, instead of or in addition to uploading it. Tell us where in the assignment process your students will be at the time of the session: whether they have been introduced to the assignment, have chosen topics, or begun researching.'
'#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<span class="fa-solid fa-paperclip ml-1"></span>'
'#button__attributes':
class:
- btn
- btn-light
- border-secondary
actions:
'#type': webform_actions
'#title': 'Submit button(s)'
Expand Down

0 comments on commit b16766a

Please sign in to comment.