Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/views/member/details/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
= f.input :surname, required: true
= f.input :pronouns
= f.input :email, required: true
= f.input :dietary_restrictions, label: t('member.details.edit.dietary_restrictions')
- if @member.coach?
= f.input :about_you, as: :text, label: t('member.details.edit.coach.about_you'), input_html: { rows: 3 }, required: true
- else
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ en:
edit:
title: Almost there...
summary: We need some more details from you to finish creating your account. We use these to help run our events.
dietary_restrictions: If you have dietary restrictions, please add them here
coach:
about_you: What experience do you have? What languages do you like to use? Tell us a little bit about yourself!
student:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddDietaryRestrictionsToMember < ActiveRecord::Migration[7.0]
def change
add_column :members, :dietary_restrictions, :string
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_12_30_162506) do
ActiveRecord::Schema[7.0].define(version: 2024_12_20_215044) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -394,6 +394,7 @@
t.string "pronouns"
t.datetime "accepted_toc_at", precision: nil
t.datetime "opt_in_newsletter_at", precision: nil
t.string "dietary_restrictions"
t.index ["email"], name: "index_members_on_email", unique: true
end

Expand Down
Loading