added li membership
This commit is contained in:
@@ -18,6 +18,6 @@ class SupportersController < ApplicationController
|
||||
private
|
||||
|
||||
def supporter_form_params
|
||||
params.require(:supporter).permit(:first_name, :last_name, :street, :zip, :email, :support, :age_category, :city, :comments)
|
||||
params.require(:supporter).permit(:first_name, :last_name, :street, :zip, :email, :support, :li_membership, :age_category, :city, :comments)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,6 +15,7 @@ class Supporter
|
||||
field :city, type: String
|
||||
field :email, type: String
|
||||
field :support, type: String # Indicates the type of support
|
||||
field :li_membership, type: Boolean
|
||||
field :age_category, type: String
|
||||
field :coordinates, type: Array
|
||||
field :comments, type: String
|
||||
|
||||
@@ -10,6 +10,7 @@ h1 = title t('.title_html')
|
||||
= f.input :zip, placeholder: t('.placeholders.zip')
|
||||
= f.input :email, placeholder: t('.placeholders.email')
|
||||
= f.input :support, as: :radio_buttons, collection: t('support_type').map{ |x| [x.first, raw(x.last)]}, label_method: :last, value_method: :first
|
||||
= f.input :li_membership, as: :boolean
|
||||
= f.input :age_category, as: :radio_buttons, collection: t('age_category'), label_method: :last, value_method: :first
|
||||
= f.input :comments, as: :text
|
||||
.form-group
|
||||
|
||||
Reference in New Issue
Block a user