osem-fcy/app/views/admin/users/new.html.haml
2013-07-12 13:31:41 +03:00

16 lines
689 B
Text

.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"}