Commit 66a91c4fabe2b777d0e63329c466614ed76c6b83

Authored by Dmitriy Zaporozhets
1 parent 34245ceb

Style deploy keys form

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/profiles/show.html.haml
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 %span Choose File ... 73 %span Choose File ...
74 &nbsp; 74 &nbsp;
75 %span.file_name.js-avatar-filename File name... 75 %span.file_name.js-avatar-filename File name...
76 - = f.file_field :avatar, class: "js-user-avatar-input hide" 76 + = f.file_field :avatar, class: "js-user-avatar-input hidden"
77 .light The maximum file size allowed is 100KB. 77 .light The maximum file size allowed is 100KB.
78 - if @user.avatar? 78 - if @user.avatar?
79 %hr 79 %hr
app/views/projects/deploy_keys/_form.html.haml
1 %div 1 %div
2 - = form_for [@project, @key], url: project_deploy_keys_path do |f| 2 + = form_for [@project, @key], url: project_deploy_keys_path, html: { class: 'deploy-key-form form-horizontal' } do |f|
3 -if @key.errors.any? 3 -if @key.errors.any?
4 .alert.alert-danger 4 .alert.alert-danger
5 %ul 5 %ul
@@ -7,15 +7,15 @@ @@ -7,15 +7,15 @@
7 %li= msg 7 %li= msg
8 8
9 .form-group 9 .form-group
10 - = f.label :title 10 + = f.label :title, class: "control-label"
11 .col-sm-10= f.text_field :title, class: 'form-control' 11 .col-sm-10= f.text_field :title, class: 'form-control'
12 .form-group 12 .form-group
13 - = f.label :key 13 + = f.label :key, class: "control-label"
14 .col-sm-10 14 .col-sm-10
15 %p.light 15 %p.light
16 Paste a machine public key here. Read more about how to generate it 16 Paste a machine public key here. Read more about how to generate it
17 = link_to "here", help_ssh_path 17 = link_to "here", help_ssh_path
18 - = f.text_area :key, class: "form-control thin_area" 18 + = f.text_area :key, class: "form-control thin_area", rows: 5
19 19
20 .form-actions 20 .form-actions
21 = f.submit 'Create', class: "btn-create btn" 21 = f.submit 'Create', class: "btn-create btn"
app/views/projects/team_members/_form.html.haml
1 %h3.page-title 1 %h3.page-title
2 = "New project member(s)" 2 = "New project member(s)"
3 3
4 -= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f| 4 += form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project), html: { class: "form-horizontal users-project-form" } do |f|
5 -if @user_project_relation.errors.any? 5 -if @user_project_relation.errors.any?
6 .alert.alert-danger 6 .alert.alert-danger
7 %ul 7 %ul
@@ -10,13 +10,13 @@ @@ -10,13 +10,13 @@
10 10
11 %p 1. Choose people you want in the project 11 %p 1. Choose people you want in the project
12 .form-group 12 .form-group
13 - = f.label :user_ids, "People" 13 + = f.label :user_ids, "People", class: 'control-label'
14 .col-sm-10 14 .col-sm-10
15 = users_select_tag(:user_ids, multiple: true) 15 = users_select_tag(:user_ids, multiple: true)
16 16
17 %p 2. Set access level for them 17 %p 2. Set access level for them
18 .form-group 18 .form-group
19 - = f.label :project_access, "Project Access" 19 + = f.label :project_access, "Project Access", class: 'control-label'
20 .col-sm-10= select_tag :project_access, options_for_select(Gitlab::Access.options, @user_project_relation.project_access), class: "project-access-select chosen" 20 .col-sm-10= select_tag :project_access, options_for_select(Gitlab::Access.options, @user_project_relation.project_access), class: "project-access-select chosen"
21 21
22 .form-actions 22 .form-actions