added li membership

This commit is contained in:
2016-03-29 21:57:14 +02:00
parent e78ff2cb3b
commit 30164f2134
5 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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