2011-10-08 23:36:38 +02:00
|
|
|
.user_new
|
|
|
|
= form_for [:admin, @admin_user] do |f|
|
|
|
|
-if @admin_user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%ul
|
|
|
|
- @admin_user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :name
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :name
|
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :email
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :email
|
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :password
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.password_field :password
|
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :password_confirmation
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.password_field :password_confirmation
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :projects_limit
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :projects_limit, :class => "small_input"
|
2011-11-07 19:37:32 +01:00
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :skype
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :skype
|
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :linkedin
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :linkedin
|
|
|
|
.clearfix
|
2011-11-07 19:37:32 +01:00
|
|
|
= f.label :twitter
|
2012-01-29 22:59:12 +01:00
|
|
|
.input= f.text_field :twitter
|
2012-04-13 07:12:34 +02:00
|
|
|
%hr
|
2012-02-11 18:56:18 +01:00
|
|
|
.clearfix
|
|
|
|
= f.label :admin do
|
|
|
|
= f.check_box :admin
|
|
|
|
%span Administrator
|
2012-04-13 07:12:34 +02:00
|
|
|
.clearfix
|
|
|
|
= f.label :blocked do
|
|
|
|
= f.check_box :blocked
|
|
|
|
%span Blocked
|
2011-10-08 23:36:38 +02:00
|
|
|
.actions
|
2012-01-29 22:59:12 +01:00
|
|
|
= f.submit 'Save', :class => "btn primary"
|
2012-02-11 18:56:18 +01:00
|
|
|
- if @admin_user.new_record?
|
|
|
|
= link_to 'Cancel', admin_users_path, :class => "btn"
|
|
|
|
- else
|
|
|
|
= link_to 'Cancel', admin_user_path(@admin_user), :class => "btn"
|