diff --git a/app/views/admin/registrations/edit.html.haml b/app/views/admin/registrations/edit.html.haml index 67377654..f93341de 100644 --- a/app/views/admin/registrations/edit.html.haml +++ b/app/views/admin/registrations/edit.html.haml @@ -10,12 +10,12 @@ = f.inputs "Personal Information" do = f.fields_for :person do |p| - = p.input :first_name - = p.input :last_name - = p.label :Nickname - = p.text_field :irc_nickname + = p.input :first_name, :as => :string + = p.input :last_name, :as => :string + = p.label :Nickname, :as => :string + = p.text_field :irc_nickname, :as => :string = p.label :Affiliation - = p.text_field :company, :placeholder => "Company/User Group/nothing" + = p.text_field :company, :placeholder => "Company/User Group/nothing", :as => :string = f.inputs "Registration Information" do - if @conference.use_supporter_levels? diff --git a/app/views/admin/registrations/new.html.haml b/app/views/admin/registrations/new.html.haml index 20cdbe05..1d81f757 100644 --- a/app/views/admin/registrations/new.html.haml +++ b/app/views/admin/registrations/new.html.haml @@ -8,15 +8,15 @@ = f.inputs "Your details" do = f.fields_for :user do |u| - = u.input :email, :hint => "Please enter a valid email address. You will need it to log in to OSEM later." + = u.input :email, :as => :string, :hint => "Please enter a valid email address. You will need it to log in to OSEM later." = f.fields_for @person do |p| - = p.input :first_name - = p.input :last_name - = p.input :public_name + = p.input :first_name, :as => :string + = p.input :last_name, :as => :string + = p.input :public_name, :as => :string = p.label :Nickname - = p.text_field :irc_nickname + = p.text_field :irc_nickname, :as => :string = p.label :Affiliation - = p.text_field :company, :placeholder => "Company/User Group/nothing" + = p.text_field :company, :placeholder => "Company/User Group/nothing", :as => :string = f.inputs "Registration Information" do - if @conference.use_supporter_levels?