admin adds new user/person and registration

This commit is contained in:
differentreality 2013-07-12 08:44:20 +03:00
parent 7e43a00098
commit d2709f0570
4 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,16 @@
.row
.span12
%h3
Create new account and registration
.row
.span12
= semantic_form_for(@user, :url => admin_users_new_path(:id => @conference.short_title), :html => { :method => :put }) do |f|
= f.inputs "Account Information" do
= f.input :email
= f.input :password, :hint => "Password must be at least 6 characters"
= f.inputs "Personal Information" do
= f.fields_for :people do |p|
= p.input :first_name
= p.input :last_name
= f.input :conferences, :as => :check_boxes, :label => true, :collection => @conferences
= f.action :submit, :button_html => { :value => "Create", :class => "btn btn-primary"}