use control-group classes for inline forms in project area pages

This commit is contained in:
Dmitriy Zaporozhets 2013-08-07 23:30:40 +03:00
parent c52f9e1a32
commit df437f419b
7 changed files with 26 additions and 26 deletions

View file

@ -10,13 +10,13 @@
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
%li= msg %li= msg
.clearfix .control-group
= f.label :password = f.label :password
.input= f.password_field :password, required: true .controls= f.password_field :password, required: true
.clearfix .control-group
= f.label :password_confirmation = f.label :password_confirmation
.input .controls
= f.password_field :password_confirmation, required: true = f.password_field :password_confirmation, required: true
.clearfix .control-group
.input .controls
= f.submit 'Set new password', class: "btn btn-create" = f.submit 'Set new password', class: "btn btn-create"

View file

@ -6,12 +6,12 @@
- @key.errors.full_messages.each do |msg| - @key.errors.full_messages.each do |msg|
%li= msg %li= msg
.clearfix .control-group
= f.label :title = f.label :title
.input= f.text_field :title .controls= f.text_field :title
.clearfix .control-group
= f.label :key = f.label :key
.input .controls
= f.text_area :key, class: [:xxlarge, :thin_area] = f.text_area :key, class: [:xxlarge, :thin_area]
%p.hint %p.hint
Paste a machine public key here. Read more about how generate it Paste a machine public key here. Read more about how generate it

View file

@ -11,9 +11,9 @@
.alert.alert-error .alert.alert-error
- @hook.errors.full_messages.each do |msg| - @hook.errors.full_messages.each do |msg|
%p= msg %p= msg
.clearfix .control-group
= f.label :url, "URL:" = f.label :url, "URL:"
.input .controls
= f.text_field :url, class: "text_field xxlarge input-xpadding", placeholder: 'http://example.com/trigger-ci.json' = f.text_field :url, class: "text_field xxlarge input-xpadding", placeholder: 'http://example.com/trigger-ci.json'
   
= f.submit "Add Web Hook", class: "btn btn-create" = f.submit "Add Web Hook", class: "btn btn-create"

View file

@ -26,7 +26,7 @@
.span6 .span6
.control-group .control-group
= f.label :due_date, "Due Date", class: "control-label" = f.label :due_date, "Due Date", class: "control-label"
.input= f.hidden_field :due_date .controls= f.hidden_field :due_date
.controls .controls
.datepicker .datepicker

View file

@ -9,16 +9,16 @@
- @snippet.errors.full_messages.each do |msg| - @snippet.errors.full_messages.each do |msg|
%li= msg %li= msg
.clearfix .control-group
= f.label :title = f.label :title
.input= f.text_field :title, placeholder: "Example Snippet", class: 'input-xlarge', required: true .controls= f.text_field :title, placeholder: "Example Snippet", class: 'input-xlarge', required: true
.clearfix .control-group
= f.label "Lifetime" = f.label "Lifetime"
.input= f.select :expires_at, lifetime_select_options, {}, {class: 'chosen span2'} .controls= f.select :expires_at, lifetime_select_options, {}, {class: 'chosen span2'}
.clearfix .control-group
.file-editor .file-editor
= f.label :file_name, "File" = f.label :file_name, "File"
.input .controls
.file-holder.snippet .file-holder.snippet
.file-title .file-title
= f.text_field :file_name, placeholder: "example.rb", class: 'snippet-file-name', required: true = f.text_field :file_name, placeholder: "example.rb", class: 'snippet-file-name', required: true

View file

@ -9,15 +9,15 @@
%li= msg %li= msg
%h6 1. Choose people you want in the team %h6 1. Choose people you want in the team
.clearfix .control-group
= f.label :user_ids, "People" = f.label :user_ids, "People"
.input .controls
= users_select_tag(:user_ids, multiple: true) = users_select_tag(:user_ids, multiple: true)
%h6 2. Set access level for them %h6 2. Set access level for them
.clearfix .control-group
= f.label :project_access, "Project Access" = f.label :project_access, "Project Access"
.input= select_tag :project_access, options_for_select(Project.access_options, @user_project_relation.project_access), class: "project-access-select chosen" .controls= select_tag :project_access, options_for_select(Project.access_options, @user_project_relation.project_access), class: "project-access-select chosen"
.actions .actions
= f.submit 'Add users', class: "btn btn-create" = f.submit 'Add users', class: "btn btn-create"

View file

@ -15,7 +15,7 @@
= f.select :format, options_for_select(GollumWiki::MARKUPS, {selected: @wiki.format}), {}, class: "pull-right input-medium" = f.select :format, options_for_select(GollumWiki::MARKUPS, {selected: @wiki.format}), {}, class: "pull-right input-medium"
= f.label :format, class: "pull-right", style: "padding-right: 20px;" = f.label :format, class: "pull-right", style: "padding-right: 20px;"
.ui-box-body .ui-box-body
.input .controls
%span.cgray %span.cgray
Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}.
To link to a (new) page you can just type To link to a (new) page you can just type
@ -24,10 +24,10 @@
.ui-box-bottom .ui-box-bottom
= f.label :content = f.label :content
.input= f.text_area :content, class: 'span8 js-gfm-input' .controls= f.text_area :content, class: 'span8 js-gfm-input'
.ui-box-bottom .ui-box-bottom
= f.label :commit_message = f.label :commit_message
.input= f.text_field :message, class: 'span8' .controls= f.text_field :message, class: 'span8'
.actions .actions
- if @wiki && @wiki.persisted? - if @wiki && @wiki.persisted?
= f.submit 'Save changes', class: "btn-save btn" = f.submit 'Save changes', class: "btn-save btn"