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
|
|
|
|
|
|
|
|
.span-24
|
|
|
|
.span-11.colborder
|
|
|
|
.field
|
|
|
|
= f.label :name
|
|
|
|
%br
|
|
|
|
= f.text_field :name
|
|
|
|
.field
|
|
|
|
= f.label :email
|
|
|
|
%br
|
|
|
|
= f.text_field :email
|
|
|
|
.field
|
|
|
|
= f.label :password
|
|
|
|
%br
|
|
|
|
= f.password_field :password
|
|
|
|
.field
|
|
|
|
= f.label :password_confirmation
|
|
|
|
%br
|
|
|
|
= f.password_field :password_confirmation
|
2011-10-20 00:34:05 +02:00
|
|
|
.field.prepend-top
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.check_box :admin
|
|
|
|
= f.label :admin
|
2011-10-20 00:34:05 +02:00
|
|
|
.span-11
|
2011-10-08 23:36:38 +02:00
|
|
|
.field.prepend-top
|
2011-10-09 20:15:01 +02:00
|
|
|
= f.text_field :projects_limit, :class => "small_input"
|
|
|
|
= f.label :projects_limit
|
2011-10-20 00:34:05 +02:00
|
|
|
|
|
|
|
.field
|
|
|
|
= f.label :skype
|
|
|
|
%br
|
|
|
|
= f.text_field :skype
|
|
|
|
.field
|
|
|
|
= f.label :linkedin
|
|
|
|
%br
|
|
|
|
= f.text_field :linkedin
|
|
|
|
.field
|
|
|
|
= f.label :twitter
|
|
|
|
%br
|
|
|
|
= f.text_field :twitter
|
2011-10-08 23:36:38 +02:00
|
|
|
.clear
|
|
|
|
%br
|
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "lbutton"
|