Skip to content

Commit 5591992

Browse files
committed
ask for dietary restrictions during signup
update form used during signup to include fields for dietary restrictions.
1 parent edd366c commit 5591992

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/views/member/details/edit.html.haml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
= f.input :about_you, as: :text, label: t('member.details.edit.coach.about_you'), input_html: { rows: 3 }, required: true
1616
- else
1717
= f.input :about_you, as: :text, label: t('member.details.edit.student.about_you'), input_html: { rows: 3 }, required: true
18+
= f.input :dietary_restrictions, collection: Member::DIETARY_RESTRICTIONS, as: :check_boxes, label_method: :titleize
19+
= f.input :other_dietary_restrictions, placeholder: 'Other dietary restrictions',
20+
wrapper_html: { class: class_names('mt-n3', 'd-none': !@member.other_dietary_restrictions?) }, label_html: { class: 'sr-only' }
1821
= f.input :newsletter, as: :boolean, checked_value: true, unchecked_value: false
1922
.text-right.mb-4
2023
= hidden_field_tag :next_page, step2_member_path(member_type: @type)

0 commit comments

Comments
 (0)