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

[skip ci] .form-horizontal => .form-group.row

parent 705d7f70
No related branches found
No related tags found
No related merge requests found
.form-group.commit_message-group
.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
Loading
Loading
- ci_cd_only = local_assigns.fetch(:ci_cd_only, false)
 
.form-group.import-url-data
.form-group.row.import-url-data
= f.label :import_url, class: 'label-light' do
%span
= _('Git repository URL')
Loading
Loading
Loading
Loading
@@ -7,7 +7,7 @@
= hidden_field_tag 'branch_name', @ref
- else
- if can?(current_user, :push_code, @project)
.form-group.branch
.form-group.row.branch
= label_tag 'branch_name', _('Target Branch'), class: 'col-form-label'
.col-sm-10
= text_field_tag 'branch_name', branch_name, required: true, class: "form-control js-branch-name ref-name"
Loading
Loading
Loading
Loading
@@ -8,13 +8,13 @@
 
.service-settings
- if @service.show_active_box?
.form-group
.form-group.row
= form.label :active, "Active", class: "col-form-label"
.col-sm-10
= form.check_box :active, disabled: disable_fields_service?(@service)
 
- if @service.configurable_events.present?
.form-group
.form-group.row
= form.label :url, "Trigger", class: 'col-form-label'
 
.col-sm-10
Loading
Loading
- with_label = local_assigns.fetch(:with_label, true)
 
.form-group.visibility-level-setting
.form-group.row.visibility-level-setting
- if with_label
= f.label :visibility_level, class: 'col-form-label' do
Visibility Level
Loading
Loading
Loading
Loading
@@ -9,7 +9,7 @@
- else
- preview_url = preview_markdown_path(project)
 
.form-group.detail-page-description
.form-group.row.detail-page-description
= form.label :description, 'Description', class: 'col-form-label'
.col-sm-10
 
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@
= link_to "the #{issuable.class.model_name.human.downcase}", polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), target: "_blank", rel: 'noopener noreferrer'
and make sure your changes will not unintentionally remove theirs
 
.form-group
.form-group.row
= form.label :title, class: 'col-form-label'
 
= render 'shared/issuable/form/template_selector', issuable: issuable
Loading
Loading
@@ -20,7 +20,7 @@
= render 'shared/form_elements/description', model: issuable, form: form, project: project
 
- if issuable.respond_to?(:confidential)
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
.form-check
= form.label :confidential do
Loading
Loading
@@ -36,7 +36,7 @@
= render 'shared/issuable/form/contribution', issuable: issuable, form: form
 
- if @merge_request_to_resolve_discussions_of
.form-group
.form-group.row
.col-sm-10.col-sm-offset-2
= icon('info-circle')
- if @merge_request_to_resolve_discussions_of.discussions_can_be_resolved_by?(current_user)
Loading
Loading
= form_for @label, as: :label, url: url, html: { class: 'form-horizontal label-form js-quick-submit js-requires-input' } do |f|
= form_for @label, as: :label, url: url, html: { class: 'label-form js-quick-submit js-requires-input' } do |f|
= form_errors(@label)
 
.form-group
.form-group.row
= f.label :title, class: 'col-form-label'
.col-sm-10
= f.text_field :title, class: "form-control", required: true, autofocus: true
.form-group
.form-group.row
= f.label :description, class: 'col-form-label'
.col-sm-10
= f.text_field :description, class: "form-control js-quick-submit"
.form-group
.form-group.row
= f.label :color, "Background color", class: 'col-form-label'
.col-sm-10
.input-group
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@
%span{ class: ('text-warning' if group_link.expires_soon?) }
Expires in #{distance_of_time_in_words_to_now(group_link.expires_at)}
.controls.member-controls
= form_tag project_group_link_path(@project, group_link), method: :put, remote: true, class: 'form-horizontal js-edit-member-form' do
= form_tag project_group_link_path(@project, group_link), method: :put, remote: true, class: 'js-edit-member-form' do
= hidden_field_tag "group_link[group_access]", group_link.group_access
.member-form-control.dropdown.append-right-5
%button.dropdown-menu-toggle.js-member-permissions-dropdown{ type: "button",
Loading
Loading
Loading
Loading
@@ -57,7 +57,7 @@
title: 'Resend invite'
 
- if user != current_user && member.can_update?
= form_for member, remote: true, html: { class: 'form-horizontal js-edit-member-form' } do |f|
= form_for member, remote: true, html: { class: 'js-edit-member-form' } do |f|
= f.hidden_field :access_level
.member-form-control.dropdown.append-right-5
%button.dropdown-menu-toggle.js-member-permissions-dropdown{ type: "button",
Loading
Loading
Loading
Loading
@@ -2,10 +2,10 @@
= page_specific_javascript_tag('lib/ace.js')
 
.snippet-form-holder
= form_for @snippet, url: url, html: { class: "form-horizontal snippet-form js-requires-input js-quick-submit common-note-form" } do |f|
= form_for @snippet, url: url, html: { class: "snippet-form js-requires-input js-quick-submit common-note-form" } do |f|
= form_errors(@snippet)
 
.form-group
.form-group.row
= f.label :title, class: 'col-form-label'
.col-sm-10
= f.text_field :title, class: 'form-control', required: true, autofocus: true
Loading
Loading
@@ -15,7 +15,7 @@
= render 'shared/visibility_level', f: f, visibility_level: @snippet.visibility_level, can_change_visibility_level: true, form_model: @snippet
 
.file-editor
.form-group
.form-group.row
= f.label :file_name, "File", class: 'col-form-label'
.col-sm-10
.file-holder.snippet
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