diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 01:27:02 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 01:27:02 +0200 |
commit | 16eb3ac360df60469cc9b1a93870c0273c7fe78f (patch) | |
tree | 9aff8fff986e9868b1500001d00968f469f73067 /app/views/admin/users/_form.html.haml | |
parent | 2ecf83191d4ae7a158d70f8cfa11ec9f2744b0ce (diff) | |
download | gitlab-ce-16eb3ac360df60469cc9b1a93870c0273c7fe78f.tar.gz |
Update form classes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/admin/users/_form.html.haml')
-rw-r--r-- | app/views/admin/users/_form.html.haml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index 6e3b7337ab3..fc9b2d250a5 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -8,28 +8,28 @@ %fieldset %legend Account - .control-group + .form-group = f.label :name - .controls + .col-sm-10 = f.text_field :name, required: true, autocomplete: "off" %span.help-inline * required - .control-group + .form-group = f.label :username - .controls + .col-sm-10 = f.text_field :username, required: true, autocomplete: "off" %span.help-inline * required - .control-group + .form-group = f.label :email - .controls + .col-sm-10 = f.text_field :email, required: true, autocomplete: "off" %span.help-inline * required - if @user.new_record? %fieldset %legend Password - .control-group + .form-group = f.label :password - .controls + .col-sm-10 %strong A temporary password will be generated and sent to user. %br @@ -37,29 +37,29 @@ - else %fieldset %legend Password - .control-group + .form-group = f.label :password - .controls= f.password_field :password, disabled: f.object.force_random_password - .control-group + .col-sm-10= f.password_field :password, disabled: f.object.force_random_password + .form-group = f.label :password_confirmation - .controls= f.password_field :password_confirmation, disabled: f.object.force_random_password + .col-sm-10= f.password_field :password_confirmation, disabled: f.object.force_random_password %fieldset %legend Access .row .col-md-8 - .control-group + .form-group = f.label :projects_limit - .controls= f.number_field :projects_limit + .col-sm-10= f.number_field :projects_limit - .control-group + .form-group = f.label :can_create_group - .controls= f.check_box :can_create_group + .col-sm-10= f.check_box :can_create_group - .control-group + .form-group = f.label :admin do %strong.cred Administrator - .controls= f.check_box :admin + .col-sm-10= f.check_box :admin .col-md-4 - unless @user.new_record? .alert.alert-error @@ -71,15 +71,15 @@ = link_to 'Block User', block_admin_user_path(@user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "btn btn-small btn-remove" %fieldset %legend Profile - .control-group + .form-group = f.label :skype - .controls= f.text_field :skype - .control-group + .col-sm-10= f.text_field :skype + .form-group = f.label :linkedin - .controls= f.text_field :linkedin - .control-group + .col-sm-10= f.text_field :linkedin + .form-group = f.label :twitter - .controls= f.text_field :twitter + .col-sm-10= f.text_field :twitter .form-actions - if @user.new_record? |