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

[skip ci] add col-sm-* for form-horizontal changes to keep layout

parent 53bf57f3
No related branches found
No related tags found
No related merge requests found
= form_for runner, url: runner_form_url do |f|
= form_errors(runner)
.form-group.row
= label :active, "Active", class: 'col-form-label'
= label :active, "Active", class: 'col-form-label col-sm-2'
.col-sm-10
.form-check
= f.check_box :active
%span.light Paused Runners don't accept new jobs
.form-group.row
= label :protected, "Protected", class: 'col-form-label'
= label :protected, "Protected", class: 'col-form-label col-sm-2'
.col-sm-10
.form-check
= f.check_box :access_level, {}, 'ref_protected', 'not_protected'
%span.light This runner will only run on pipelines triggered on protected branches
.form-group.row
= label :run_untagged, 'Run untagged jobs', class: 'col-form-label'
= label :run_untagged, 'Run untagged jobs', class: 'col-form-label col-sm-2'
.col-sm-10
.form-check
= f.check_box :run_untagged
%span.light Indicates whether this runner can pick jobs without tags
.form-group.row
= label :locked, 'Lock to current projects', class: 'col-form-label'
= label :locked, 'Lock to current projects', class: 'col-form-label col-sm-2'
.col-sm-10
.form-check
= f.check_box :locked
%span.light When a runner is locked, it cannot be assigned to other projects
.form-group.row
= label_tag :token, class: 'col-form-label' do
= label_tag :token, class: 'col-form-label col-sm-2' do
Token
.col-sm-10
= f.text_field :token, class: 'form-control', readonly: true
.form-group.row
= label_tag :ip_address, class: 'col-form-label' do
= label_tag :ip_address, class: 'col-form-label col-sm-2' do
IP Address
.col-sm-10
= f.text_field :ip_address, class: 'form-control', readonly: true
.form-group.row
= label_tag :description, class: 'col-form-label' do
= label_tag :description, class: 'col-form-label col-sm-2' do
Description
.col-sm-10
= f.text_field :description, class: 'form-control'
.form-group.row
= label_tag :maximum_timeout_human_readable, class: 'col-form-label' do
= label_tag :maximum_timeout_human_readable, class: 'col-form-label col-sm-2' do
Maximum job timeout
.col-sm-10
= f.text_field :maximum_timeout_human_readable, class: 'form-control'
.form-text.text-muted This timeout will take precedence when lower than Project-defined timeout
.form-group.row
= label_tag :tag_list, class: 'col-form-label' do
= label_tag :tag_list, class: 'col-form-label col-sm-2' do
Tags
.col-sm-10
= f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
Loading
Loading
Loading
Loading
@@ -12,11 +12,11 @@
 
= form_tag namespace_project_tags_path, method: :post, id: "new-tag-form", class: "common-note-form tag-form js-quick-submit js-requires-input" do
.form-group.row
= label_tag :tag_name, nil, class: 'col-form-label'
= label_tag :tag_name, nil, class: 'col-form-label col-sm-2'
.col-sm-10
= text_field_tag :tag_name, params[:tag_name], required: true, autofocus: true, class: 'form-control'
.form-group.row
= label_tag :ref, 'Create from', class: 'col-form-label'
= label_tag :ref, 'Create from', class: 'col-form-label col-sm-2'
.col-sm-10.create-from
.dropdown
= hidden_field_tag :ref, default_ref
Loading
Loading
@@ -26,14 +26,14 @@
.form-text.text-muted
= s_('TagsPage|Existing branch name, tag, or commit SHA')
.form-group.row
= label_tag :message, nil, class: 'col-form-label'
= label_tag :message, nil, class: 'col-form-label col-sm-2'
.col-sm-10
= text_area_tag :message, @message, required: false, class: 'form-control', rows: 5
.form-text.text-muted
= s_('TagsPage|Optionally, add a message to the tag.')
%hr
.form-group.row
= label_tag :release_description, s_('TagsPage|Release notes'), class: 'col-form-label'
= label_tag :release_description, s_('TagsPage|Release notes'), class: 'col-form-label col-sm-2'
.col-sm-10
= render layout: 'projects/md_preview', locals: { url: preview_markdown_path(@project), referenced_users: true } do
= render 'projects/zen', attr: :release_description, classes: 'note-textarea', placeholder: s_('TagsPage|Write your release notes or drag files here...'), current_text: @release_description
Loading
Loading
.form-group.row.commit_message-group
- nonce = SecureRandom.hex
- descriptions = local_assigns.slice(:message_with_description, :message_without_description)
= label_tag "commit_message-#{nonce}", class: 'col-form-label' do
= label_tag "commit_message-#{nonce}", class: 'col-form-label col-sm-2' do
#{ _('Commit message') }
.col-sm-10
.commit-message-container
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@
- else
- if can?(current_user, :push_code, @project)
.form-group.row.branch
= label_tag 'branch_name', _('Target Branch'), class: 'col-form-label'
= label_tag 'branch_name', _('Target Branch'), class: 'col-form-label col-sm-2'
.col-sm-10
= text_field_tag 'branch_name', branch_name, required: true, class: "form-control js-branch-name ref-name"
 
Loading
Loading
Loading
Loading
@@ -9,13 +9,13 @@
.service-settings
- if @service.show_active_box?
.form-group.row
= form.label :active, "Active", class: "col-form-label"
= form.label :active, "Active", class: "col-form-label col-sm-2"
.col-sm-10
= form.check_box :active, disabled: disable_fields_service?(@service)
 
- if @service.configurable_events.present?
.form-group.row
= form.label :url, "Trigger", class: 'col-form-label'
= form.label :url, "Trigger", class: 'col-form-label col-sm-2'
 
.col-sm-10
- @service.configurable_events.each do |event|
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
.form-group.row.visibility-level-setting
- if with_label
= f.label :visibility_level, class: 'col-form-label' do
= f.label :visibility_level, class: 'col-form-label col-sm-2' do
Visibility Level
= link_to icon('question-circle'), help_page_path("public_access/public_access")
%div{ :class => ("col-sm-10" if with_label) }
Loading
Loading
Loading
Loading
@@ -5,26 +5,26 @@
= form_errors(deploy_key)
 
.form-group
= form.label :title, class: 'col-form-label'
= form.label :title, class: 'col-form-label col-sm-2'
.col-sm-10= form.text_field :title, class: 'form-control'
 
.form-group
- if deploy_key.new_record?
= form.label :key, class: 'col-form-label'
= form.label :key, class: 'col-form-label col-sm-2'
.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: 'col-form-label'
= form.label :fingerprint, class: 'col-form-label col-sm-2'
.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
.col-form-label
.col-form-label.col-sm-2
.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.row.detail-page-description
= form.label :description, 'Description', class: 'col-form-label'
= form.label :description, 'Description', class: 'col-form-label col-sm-2'
.col-sm-10
 
= render layout: 'projects/md_preview', locals: { url: preview_url, referenced_users: true } do
Loading
Loading
Loading
Loading
@@ -2,15 +2,15 @@
= form_errors(@label)
 
.form-group.row
= f.label :title, class: 'col-form-label'
= f.label :title, class: 'col-form-label col-sm-2'
.col-sm-10
= f.text_field :title, class: "form-control", required: true, autofocus: true
.form-group.row
= f.label :description, class: 'col-form-label'
= f.label :description, class: 'col-form-label col-sm-2'
.col-sm-10
= f.text_field :description, class: "form-control js-quick-submit"
.form-group.row
= f.label :color, "Background color", class: 'col-form-label'
= f.label :color, "Background color", class: 'col-form-label col-sm-2'
.col-sm-10
.input-group
.input-group-prepend
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
= form_errors(@snippet)
 
.form-group.row
= f.label :title, class: 'col-form-label'
= f.label :title, class: 'col-form-label col-sm-2'
.col-sm-10
= f.text_field :title, class: 'form-control', required: true, autofocus: true
 
Loading
Loading
@@ -16,7 +16,7 @@
 
.file-editor
.form-group.row
= f.label :file_name, "File", class: 'col-form-label'
= f.label :file_name, "File", class: 'col-form-label col-sm-2'
.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