2011-10-08 23:36:38 +02:00
|
|
|
.user_new
|
|
|
|
= form_for [:admin, @admin_user] do |f|
|
|
|
|
-if @admin_user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%h2= "#{pluralize(@admin_user.errors.count, "error")} prohibited this admin_user from being saved:"
|
|
|
|
%ul
|
|
|
|
- @admin_user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
|
|
|
= f.label :name
|
|
|
|
%br
|
|
|
|
= f.text_field :name
|
|
|
|
.form-row
|
|
|
|
= f.label :email
|
|
|
|
%br
|
|
|
|
= f.text_field :email
|
|
|
|
.form-row
|
|
|
|
= f.label :password
|
|
|
|
%br
|
|
|
|
= f.password_field :password
|
|
|
|
.form-row
|
|
|
|
= f.label :password_confirmation
|
|
|
|
%br
|
|
|
|
= f.password_field :password_confirmation
|
|
|
|
.form-row
|
|
|
|
= f.check_box :admin
|
|
|
|
= f.label :admin
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
|
|
|
= f.text_field :projects_limit, :class => "small_input"
|
|
|
|
= f.label :projects_limit
|
|
|
|
|
|
|
|
.form-row
|
|
|
|
= f.label :skype
|
|
|
|
%br
|
|
|
|
= f.text_field :skype
|
|
|
|
.form-row
|
|
|
|
= f.label :linkedin
|
|
|
|
%br
|
|
|
|
= f.text_field :linkedin
|
|
|
|
.form-row
|
|
|
|
= f.label :twitter
|
|
|
|
%br
|
|
|
|
= f.text_field :twitter
|
2011-10-08 23:36:38 +02:00
|
|
|
.clear
|
2011-11-21 08:26:10 +01:00
|
|
|
%br
|
2011-10-08 23:36:38 +02:00
|
|
|
.actions
|
2012-01-27 08:19:55 +01:00
|
|
|
= f.submit 'Save', :class => "btn"
|