Skip to content
Snippets Groups Projects
Commit e44ceb96 authored by Clement Ho's avatar Clement Ho
Browse files

[skip ci] .control-label to .col-form-label

parent 94a051cf
No related branches found
No related tags found
No related merge requests found
Showing with 21 additions and 21 deletions
Loading
Loading
@@ -5,26 +5,26 @@
= form_errors(deploy_key)
 
.form-group
= form.label :title, class: 'control-label'
= form.label :title, class: 'col-form-label'
.col-sm-10= form.text_field :title, class: 'form-control'
 
.form-group
- if deploy_key.new_record?
= form.label :key, class: 'control-label'
= form.label :key, class: 'col-form-label'
.col-sm-10
%p.light
Paste a machine public key here. Read more about how to generate it
= link_to 'here', help_page_path('ssh/README')
= form.text_area :key, class: 'form-control thin_area', rows: 5
- else
= form.label :fingerprint, class: 'control-label'
= form.label :fingerprint, class: 'col-form-label'
.col-sm-10
= form.text_field :fingerprint, class: 'form-control', readonly: 'readonly'
 
- if deploy_keys_project.present?
= form.fields_for :deploy_keys_projects, deploy_keys_project do |deploy_keys_project_form|
.form-group
.control-label
.col-form-label
.col-sm-10
= deploy_keys_project_form.label :can_push do
= deploy_keys_project_form.check_box :can_push
Loading
Loading
Loading
Loading
@@ -10,7 +10,7 @@
- preview_url = preview_markdown_path(project)
 
.form-group.detail-page-description
= form.label :description, 'Description', class: 'control-label'
= form.label :description, 'Description', class: 'col-form-label'
.col-sm-10
 
= render layout: 'projects/md_preview', locals: { url: preview_url, referenced_users: true } do
Loading
Loading
Loading
Loading
@@ -12,7 +12,7 @@
and make sure your changes will not unintentionally remove theirs
 
.form-group
= form.label :title, class: 'control-label'
= form.label :title, class: 'col-form-label'
 
= render 'shared/issuable/form/template_selector', issuable: issuable
= render 'shared/issuable/form/title', issuable: issuable, form: form, has_wip_commits: commits && commits.detect(&:work_in_progress?)
Loading
Loading
Loading
Loading
@@ -7,12 +7,12 @@
%hr
- if issuable.new_record?
.form-group
= form.label :source_branch, class: 'control-label'
= form.label :source_branch, class: 'col-form-label'
.col-sm-10
.issuable-form-select-holder
= form.select(:source_branch, [issuable.source_branch], {}, { class: 'source_branch select2 ref-name', disabled: true })
.form-group
= form.label :target_branch, class: 'control-label'
= form.label :target_branch, class: 'col-form-label'
.col-sm-10.target-branch-select-dropdown-container
.issuable-form-select-holder
= form.hidden_field(:target_branch,
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@
%hr
 
.form-group
.control-label
.col-form-label
= _('Contribution')
.col-sm-10
.form-check
Loading
Loading
Loading
Loading
@@ -15,13 +15,13 @@
- else
= render "shared/issuable/form/metadata_merge_request_assignee", issuable: issuable, form: form, has_due_date: has_due_date
.form-group.issue-milestone
= form.label :milestone_id, "Milestone", class: "control-label #{"col-lg-4" if has_due_date}"
= form.label :milestone_id, "Milestone", class: "col-form-label #{"col-lg-4" if has_due_date}"
.col-sm-10{ class: ("col-lg-8" if has_due_date) }
.issuable-form-select-holder
= render "shared/issuable/milestone_dropdown", selected: issuable.milestone, name: "#{issuable.class.model_name.param_key}[milestone_id]", show_any: false, show_upcoming: false, show_started: false, extra_class: "js-issuable-form-dropdown js-dropdown-keep-input", dropdown_title: "Select milestone"
.form-group
- has_labels = @labels && @labels.any?
= form.label :label_ids, "Labels", class: "control-label #{"col-lg-4" if has_due_date}"
= form.label :label_ids, "Labels", class: "col-form-label #{"col-lg-4" if has_due_date}"
= form.hidden_field :label_ids, multiple: true, value: ''
.col-sm-10{ class: "#{"col-lg-8" if has_due_date} #{'issuable-form-padding-top' if !has_labels}" }
.issuable-form-select-holder
Loading
Loading
@@ -29,7 +29,7 @@
- if has_due_date
.col-lg-6
.form-group
= form.label :due_date, "Due date", class: "control-label"
= form.label :due_date, "Due date", class: "col-form-label"
.col-sm-10
.issuable-form-select-holder
= form.text_field :due_date, id: "issuable-due-date", class: "datepicker form-control", placeholder: "Select due date"
= form.label :assignee_ids, "Assignee", class: "control-label #{"col-lg-4" if has_due_date}"
= form.label :assignee_ids, "Assignee", class: "col-form-label #{"col-lg-4" if has_due_date}"
.col-sm-10{ class: ("col-lg-8" if has_due_date) }
.issuable-form-select-holder.selectbox
- issuable.assignees.each do |assignee|
Loading
Loading
= form.label :assignee_id, "Assignee", class: "control-label #{"col-lg-4" if has_due_date}"
= form.label :assignee_id, "Assignee", class: "col-form-label #{"col-lg-4" if has_due_date}"
.col-sm-10{ class: ("col-lg-8" if has_due_date) }
.issuable-form-select-holder
= form.hidden_field :assignee_id
Loading
Loading
Loading
Loading
@@ -2,15 +2,15 @@
= form_errors(@label)
 
.form-group
= f.label :title, class: 'control-label'
= f.label :title, class: 'col-form-label'
.col-sm-10
= f.text_field :title, class: "form-control", required: true, autofocus: true
.form-group
= f.label :description, class: 'control-label'
= f.label :description, class: 'col-form-label'
.col-sm-10
= f.text_field :description, class: "form-control js-quick-submit"
.form-group
= f.label :color, "Background color", class: 'control-label'
= f.label :color, "Background color", class: 'col-form-label'
.col-sm-10
.input-group
.input-group-addon.label-color-preview  
Loading
Loading
.col-md-6
.form-group
= f.label :start_date, "Start Date", class: "control-label"
= f.label :start_date, "Start Date", class: "col-form-label"
.col-sm-10
= f.text_field :start_date, class: "datepicker form-control", placeholder: "Select start date"
%a.inline.float-right.prepend-top-5.js-clear-start-date{ href: "#" } Clear start date
.col-md-6
.form-group
= f.label :due_date, "Due Date", class: "control-label"
= f.label :due_date, "Due Date", class: "col-form-label"
.col-sm-10
= f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date"
%a.inline.float-right.prepend-top-5.js-clear-due-date{ href: "#" } Clear due date
Loading
Loading
@@ -6,7 +6,7 @@
= form_errors(@snippet)
 
.form-group
= f.label :title, class: 'control-label'
= f.label :title, class: 'col-form-label'
.col-sm-10
= f.text_field :title, class: 'form-control', required: true, autofocus: true
 
Loading
Loading
@@ -16,7 +16,7 @@
 
.file-editor
.form-group
= f.label :file_name, "File", class: 'control-label'
= f.label :file_name, "File", class: 'col-form-label'
.col-sm-10
.file-holder.snippet
.js-file-title.file-title
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