Commit 66a91c4fabe2b777d0e63329c466614ed76c6b83
1 parent
34245ceb
Exists in
spb-stable
and in
3 other branches
Style deploy keys form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
8 additions
and
8 deletions
Show diff stats
app/views/profiles/show.html.haml
| ... | ... | @@ -73,7 +73,7 @@ |
| 73 | 73 | %span Choose File ... |
| 74 | 74 | |
| 75 | 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 | 77 | .light The maximum file size allowed is 100KB. |
| 78 | 78 | - if @user.avatar? |
| 79 | 79 | %hr | ... | ... |
app/views/projects/deploy_keys/_form.html.haml
| 1 | 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 | 3 | -if @key.errors.any? |
| 4 | 4 | .alert.alert-danger |
| 5 | 5 | %ul |
| ... | ... | @@ -7,15 +7,15 @@ |
| 7 | 7 | %li= msg |
| 8 | 8 | |
| 9 | 9 | .form-group |
| 10 | - = f.label :title | |
| 10 | + = f.label :title, class: "control-label" | |
| 11 | 11 | .col-sm-10= f.text_field :title, class: 'form-control' |
| 12 | 12 | .form-group |
| 13 | - = f.label :key | |
| 13 | + = f.label :key, class: "control-label" | |
| 14 | 14 | .col-sm-10 |
| 15 | 15 | %p.light |
| 16 | 16 | Paste a machine public key here. Read more about how to generate it |
| 17 | 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 | 20 | .form-actions |
| 21 | 21 | = f.submit 'Create', class: "btn-create btn" | ... | ... |
app/views/projects/team_members/_form.html.haml
| 1 | 1 | %h3.page-title |
| 2 | 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 | 5 | -if @user_project_relation.errors.any? |
| 6 | 6 | .alert.alert-danger |
| 7 | 7 | %ul |
| ... | ... | @@ -10,13 +10,13 @@ |
| 10 | 10 | |
| 11 | 11 | %p 1. Choose people you want in the project |
| 12 | 12 | .form-group |
| 13 | - = f.label :user_ids, "People" | |
| 13 | + = f.label :user_ids, "People", class: 'control-label' | |
| 14 | 14 | .col-sm-10 |
| 15 | 15 | = users_select_tag(:user_ids, multiple: true) |
| 16 | 16 | |
| 17 | 17 | %p 2. Set access level for them |
| 18 | 18 | .form-group |
| 19 | - = f.label :project_access, "Project Access" | |
| 19 | + = f.label :project_access, "Project Access", class: 'control-label' | |
| 20 | 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 | 22 | .form-actions | ... | ... |