Skip to content
Snippets Groups Projects
Verified Commit b563312c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Style project edit section

parent 1b5510a8
No related branches found
No related tags found
No related merge requests found
Loading
@@ -56,3 +56,7 @@
Loading
@@ -56,3 +56,7 @@
.chosen-compact { .chosen-compact {
max-width: 170px !important; max-width: 170px !important;
} }
select.select-wide {
width: 200px;
}
Loading
@@ -2,7 +2,7 @@
Loading
@@ -2,7 +2,7 @@
.dashboard.row .dashboard.row
.activities.col-md-8 .activities.col-md-8
= render 'activities' = render 'activities'
.side.col-md-4 .side.col-md-4.hidden-sm
= render 'sidebar' = render 'sidebar'
   
- else - else
Loading
Loading
Loading
@@ -52,7 +52,7 @@
Loading
@@ -52,7 +52,7 @@
= f.text_area :bio, rows: 6, class: "form-control", maxlength: 250 = f.text_area :bio, rows: 6, class: "form-control", maxlength: 250
%span.help-block Tell us about yourself in fewer than 250 characters. %span.help-block Tell us about yourself in fewer than 250 characters.
   
.col-md-5.pull-right .col-md-5
.light-well .light-well
= image_tag avatar_icon(@user.email, 160), alt: '', class: 'avatar s160' = image_tag avatar_icon(@user.email, 160), alt: '', class: 'avatar s160'
   
Loading
Loading
Loading
@@ -7,26 +7,26 @@
Loading
@@ -7,26 +7,26 @@
%p.light Some settings, such as "Transfer Project", are hidden inside the danger area below %p.light Some settings, such as "Transfer Project", are hidden inside the danger area below
%hr %hr
.form-holder .form-holder
= form_for(@project, remote: true) do |f| = form_for @project, remote: true, html: { class: "edit_project form-horizontal" } do |f|
%fieldset %fieldset
.form-group.project_name_holder .form-group.project_name_holder
= f.label :name do = f.label :name, class: 'control-label' do
Project name Project name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Example Project", class: "span5" = f.text_field :name, placeholder: "Example Project", class: "form-control"
   
   
.form-group .form-group
= f.label :description do = f.label :description, class: 'control-label' do
Project description Project description
%span.light (optional) %span.light (optional)
.col-sm-10 .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? - if @project.repository.exists? && @project.repository.branch_names.any?
.form-group .form-group
= f.label :default_branch, "Default Branch" = f.label :default_branch, "Default Branch", class: 'control-label'
.col-sm-10= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'}) .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) = render "visibility_level", f: f, visibility_level: @project.visibility_level, can_change_visibility_level: can?(current_user, :change_visibility_level, @project)
Loading
@@ -37,7 +37,7 @@
Loading
@@ -37,7 +37,7 @@
.form-group .form-group
= f.label :label_list, "Labels", class: 'control-label' = f.label :label_list, "Labels", class: 'control-label'
.col-sm-10 .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. %p.hint Separate labels with commas.
   
%fieldset.features %fieldset.features
Loading
Loading
Loading
@@ -7,19 +7,17 @@
Loading
@@ -7,19 +7,17 @@
   
%hr.clearfix %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? -if @hook.errors.any?
.alert.alert-error .alert.alert-error
- @hook.errors.full_messages.each do |msg| - @hook.errors.full_messages.each do |msg|
%p= msg %p= msg
.form-group .form-group
= f.label :url, "URL" = f.label :url, "URL", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :url, class: "text_field input-lg input-xpadding", placeholder: 'http://example.com/trigger-ci.json' = f.text_field :url, class: "form-control", placeholder: 'http://example.com/trigger-ci.json'
 
= f.submit "Add Web Hook", class: "btn btn-create"
.form-group .form-group
= f.label :url, "Trigger" = f.label :url, "Trigger", class: 'control-label'
.col-sm-10 .col-sm-10
%div %div
= f.check_box :push_events, class: 'pull-left' = f.check_box :push_events, class: 'pull-left'
Loading
@@ -42,7 +40,8 @@
Loading
@@ -42,7 +40,8 @@
%strong Merge Request events %strong Merge Request events
%p.light %p.light
This url will be triggered for created merge requests This url will be triggered for created merge requests
%hr .form-actions
= f.submit "Add Web Hook", class: "btn btn-create"
   
-if @hooks.any? -if @hooks.any?
.ui-box .ui-box
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment