summaryrefslogtreecommitdiff
path: root/app/views/admin/users/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-11 19:56:18 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-11 19:56:18 +0200
commitcc043f32d8bfa7da5e94061806ae56fc11902d71 (patch)
treef76367baa8b77aea900f396a5007711185f5d568 /app/views/admin/users/_form.html.haml
parenta769204ff489bc750c4931ecdb22ef055eac042a (diff)
downloadgitlab-ce-cc043f32d8bfa7da5e94061806ae56fc11902d71.tar.gz
Admin area improved
Diffstat (limited to 'app/views/admin/users/_form.html.haml')
-rw-r--r--app/views/admin/users/_form.html.haml14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml
index b137ae3dbdc..bb54c184e78 100644
--- a/app/views/admin/users/_form.html.haml
+++ b/app/views/admin/users/_form.html.haml
@@ -18,9 +18,6 @@
.clearfix
= f.label :password_confirmation
.input= f.password_field :password_confirmation
- .clearfix
- = f.check_box :admin
- = f.label :admin
.clearfix
= f.label :projects_limit
@@ -35,8 +32,13 @@
.clearfix
= f.label :twitter
.input= f.text_field :twitter
- .clear
- %br
+ .clearfix
+ = f.label :admin do
+ = f.check_box :admin
+ %span Administrator
.actions
= f.submit 'Save', :class => "btn primary"
- = link_to 'Cancel', admin_users_path, :class => "btn"
+ - if @admin_user.new_record?
+ = link_to 'Cancel', admin_users_path, :class => "btn"
+ - else
+ = link_to 'Cancel', admin_user_path(@admin_user), :class => "btn"