Skip to content

Commit 2c2a167

Browse files
committed
Add input to form
This change adds a simple input to the form that collects Member information. I've included a translation in English and in French, because that happens to be another language I speak!
1 parent 7b5951d commit 2c2a167

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: app/views/member/details/edit.html.haml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
= f.input :surname, required: true
1212
= f.input :pronouns
1313
= f.input :email, required: true
14+
= f.input :dietary_restrictions, label: t('member.details.edit.dietary_restrictions')
1415
- if @member.coach?
1516
= f.input :about_you, as: :text, label: t('member.details.edit.coach.about_you'), input_html: { rows: 3 }, required: true
1617
- else

Diff for: config/locales/en.yml

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ en:
445445
edit:
446446
title: Almost there...
447447
summary: We need some more details from you to finish creating your account. We use these to help run our events.
448+
dietary_restrictions: If you have dietary restrictions, please add them here
448449
coach:
449450
about_you: What experience do you have? What languages do you like to use? Tell us a little bit about yourself!
450451
student:

0 commit comments

Comments
 (0)