gitlabhq/app/views/admin/users/_form.html.haml

39 lines
1 KiB
Plaintext
Raw Normal View History

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
.span-11
.field.prepend-top.append-bottom
= f.check_box :admin
= f.label :admin
.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-08 23:36:38 +02:00
.clear
%br
.actions
= f.submit 'Save', :class => "lbutton"