Style deploy keys form

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-01-02 13:32:27 +02:00
parent 34245ceb99
commit 66a91c4fab
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
3 changed files with 8 additions and 8 deletions

View File

@ -73,7 +73,7 @@
%span Choose File ...
&nbsp;
%span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-user-avatar-input hide"
= f.file_field :avatar, class: "js-user-avatar-input hidden"
.light The maximum file size allowed is 100KB.
- if @user.avatar?
%hr

View File

@ -1,5 +1,5 @@
%div
= form_for [@project, @key], url: project_deploy_keys_path do |f|
= form_for [@project, @key], url: project_deploy_keys_path, html: { class: 'deploy-key-form form-horizontal' } do |f|
-if @key.errors.any?
.alert.alert-danger
%ul
@ -7,15 +7,15 @@
%li= msg
.form-group
= f.label :title
= 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 a machine public key here. Read more about how to generate it
= link_to "here", help_ssh_path
= f.text_area :key, class: "form-control thin_area"
= f.text_area :key, class: "form-control thin_area", rows: 5
.form-actions
= f.submit 'Create', class: "btn-create btn"

View File

@ -1,7 +1,7 @@
%h3.page-title
= "New project member(s)"
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project), html: { class: "form-horizontal users-project-form" } do |f|
-if @user_project_relation.errors.any?
.alert.alert-danger
%ul
@ -10,13 +10,13 @@
%p 1. Choose people you want in the project
.form-group
= f.label :user_ids, "People"
= f.label :user_ids, "People", class: 'control-label'
.col-sm-10
= users_select_tag(:user_ids, multiple: true)
%p 2. Set access level for them
.form-group
= f.label :project_access, "Project Access"
= f.label :project_access, "Project Access", class: 'control-label'
.col-sm-10= select_tag :project_access, options_for_select(Gitlab::Access.options, @user_project_relation.project_access), class: "project-access-select chosen"
.form-actions