diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 02:50:36 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 02:50:36 +0200 |
commit | 010a770b3fa15119b40a994fde6ffdde3acf6d2d (patch) | |
tree | d0d90a2aefe78dae9db490f8b5ca168ce4809e28 /app/views/profiles/keys/_form.html.haml | |
parent | 16eb3ac360df60469cc9b1a93870c0273c7fe78f (diff) | |
download | gitlab-ce-010a770b3fa15119b40a994fde6ffdde3acf6d2d.tar.gz |
Migrate forms and inputs pt1
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/profiles/keys/_form.html.haml')
-rw-r--r-- | app/views/profiles/keys/_form.html.haml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/profiles/keys/_form.html.haml b/app/views/profiles/keys/_form.html.haml index 671fd0dfd4e..54d64057922 100644 --- a/app/views/profiles/keys/_form.html.haml +++ b/app/views/profiles/keys/_form.html.haml @@ -1,5 +1,5 @@ %div - = form_for [:profile, @key] do |f| + = form_for [:profile, @key], html: { class: 'form-horizontal' } do |f| - if @key.errors.any? .alert.alert-error %ul @@ -7,14 +7,12 @@ %li= msg .form-group - = f.label :title - .col-sm-10= f.text_field :title, class: "input-xlarge" + = f.label :title, class: 'control-label' + .col-sm-10= f.text_field :title, class: "form-control" .form-group - = f.label :key + = f.label :key, class: 'control-label' .col-sm-10 - %p.light - Paste your public key here. Read more about how to generate a key on #{link_to "the SSH help page", help_ssh_path}. - = f.text_area :key, class: "input-xxlarge thin_area" + = f.text_area :key, class: "form-control", rows: 8 .form-actions |