%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)
.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
%hr.clearfix
-= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-inline' } do |f|
+= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f|
-if @hook.errors.any?
.alert.alert-error
- @hook.errors.full_messages.each do |msg|
%p= msg
.form-group
- = f.label :url, "URL"
+ = f.label :url, "URL", class: 'control-label'
.col-sm-10
- = f.text_field :url, class: "text_field input-lg input-xpadding", placeholder: 'http://example.com/trigger-ci.json'
-
- = f.submit "Add Web Hook", class: "btn btn-create"
+ = f.text_field :url, class: "form-control", placeholder: 'http://example.com/trigger-ci.json'
.form-group
- = f.label :url, "Trigger"
+ = f.label :url, "Trigger", class: 'control-label'
.col-sm-10
%div
= f.check_box :push_events, class: 'pull-left'
%strong Merge Request events
%p.light
This url will be triggered for created merge requests
-%hr
+ .form-actions
+ = f.submit "Add Web Hook", class: "btn btn-create"
-if @hooks.any?
.ui-box