summaryrefslogtreecommitdiff
path: root/app/views/projects/edit.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-31 16:16:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-31 16:16:50 +0200
commitb563312c2f59c04d535aa798e5cdfa8596f22dee (patch)
tree6eb47942998aec0ab1fcd9a4a60a0414d17c49f9 /app/views/projects/edit.html.haml
parent1b5510a85e9dc59b6a8f1ad8e19539c563cfcb0a (diff)
downloadgitlab-ce-b563312c2f59c04d535aa798e5cdfa8596f22dee.tar.gz
Style project edit section
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r--app/views/projects/edit.html.haml16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index 4d365d0af48..c3201dc0049 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -7,26 +7,26 @@
%p.light Some settings, such as "Transfer Project", are hidden inside the danger area below
%hr
.form-holder
- = form_for(@project, remote: true) do |f|
+ = form_for @project, remote: true, html: { class: "edit_project form-horizontal" } do |f|
%fieldset
.form-group.project_name_holder
- = f.label :name do
+ = f.label :name, class: 'control-label' do
Project name
.col-sm-10
- = f.text_field :name, placeholder: "Example Project", class: "span5"
+ = f.text_field :name, placeholder: "Example Project", class: "form-control"
.form-group
- = f.label :description do
+ = f.label :description, class: 'control-label' do
Project description
%span.light (optional)
.col-sm-10
- = f.text_area :description, placeholder: "Awesome project", class: "span5", rows: 3, maxlength: 250
+ = f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250
- if @project.repository.exists? && @project.repository.branch_names.any?
.form-group
- = f.label :default_branch, "Default Branch"
- .col-sm-10= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'})
+ = f.label :default_branch, "Default Branch", class: 'control-label'
+ .col-sm-10= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen select-wide'})
= render "visibility_level", f: f, visibility_level: @project.visibility_level, can_change_visibility_level: can?(current_user, :change_visibility_level, @project)
@@ -37,7 +37,7 @@
.form-group
= f.label :label_list, "Labels", class: 'control-label'
.col-sm-10
- = f.text_field :label_list, maxlength: 2000, class: "span5"
+ = f.text_field :label_list, maxlength: 2000, class: "form-control"
%p.hint Separate labels with commas.
%fieldset.features