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
Showing
with 61 additions and 61 deletions
Loading
Loading
@@ -3,7 +3,7 @@
 
%p #{@service.description} template
 
= form_for :service, url: admin_application_settings_service_path, method: :put, html: { class: 'form-horizontal fieldset-form' } do |form|
= form_for :service, url: admin_application_settings_service_path, method: :put, html: { class: 'fieldset-form' } do |form|
= render 'shared/service_settings', form: form, subject: @service
 
.footer-block.row-content-block
Loading
Loading
.user_new
= form_for [:admin, @user], html: { class: 'form-horizontal fieldset-form' } do |f|
= form_for [:admin, @user], html: { class: 'fieldset-form' } do |f|
= form_errors(@user)
 
%fieldset
%legend Account
.form-group
.form-group.row
= f.label :name, class: 'col-form-label'
.col-sm-10
= f.text_field :name, required: true, autocomplete: 'off', class: 'form-control'
%span.help-inline * required
.form-group
.form-group.row
= f.label :username, class: 'col-form-label'
.col-sm-10
= f.text_field :username, required: true, autocomplete: 'off', autocorrect: 'off', autocapitalize: 'off', spellcheck: false, class: 'form-control'
%span.help-inline * required
.form-group
.form-group.row
= f.label :email, class: 'col-form-label'
.col-sm-10
= f.text_field :email, required: true, autocomplete: 'off', class: 'form-control'
Loading
Loading
@@ -23,7 +23,7 @@
- if @user.new_record?
%fieldset
%legend Password
.form-group
.form-group.row
= f.label :password, class: 'col-form-label'
.col-sm-10
%strong
Loading
Loading
@@ -33,10 +33,10 @@
- else
%fieldset
%legend Password
.form-group
.form-group.row
= f.label :password, class: 'col-form-label'
.col-sm-10= f.password_field :password, disabled: f.object.force_random_password, class: 'form-control'
.form-group
.form-group.row
= f.label :password_confirmation, class: 'col-form-label'
.col-sm-10= f.password_field :password_confirmation, disabled: f.object.force_random_password, class: 'form-control'
 
Loading
Loading
@@ -44,21 +44,21 @@
 
%fieldset
%legend Profile
.form-group
.form-group.row
= f.label :avatar, class: 'col-form-label'
.col-sm-10
= f.file_field :avatar
 
.form-group
.form-group.row
= f.label :skype, class: 'col-form-label'
.col-sm-10= f.text_field :skype, class: 'form-control'
.form-group
.form-group.row
= f.label :linkedin, class: 'col-form-label'
.col-sm-10= f.text_field :linkedin, class: 'form-control'
.form-group
.form-group.row
= f.label :twitter, class: 'col-form-label'
.col-sm-10= f.text_field :twitter, class: 'form-control'
.form-group
.form-group.row
= f.label :website_url, 'Website', class: 'col-form-label'
.col-sm-10= f.text_field :website_url, class: 'form-control'
 
Loading
Loading
Loading
Loading
@@ -3,11 +3,11 @@
.card-header
Group settings
.card-body
= form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
= form_for @group, html: { multipart: true, class: "gl-show-field-errors" }, authenticity_token: true do |f|
= form_errors(@group)
= render 'shared/group_form', f: f
 
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
.avatar-container.s160
= group_icon(@group, alt: '', class: 'avatar group-avatar s160')
Loading
Loading
@@ -23,11 +23,11 @@
 
= render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group
 
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
= render 'shared/allow_request_access', form: f
 
.form-group
.form-group.row
%label.col-form-label
= s_("GroupSettings|Share with group lock")
.col-sm-10
Loading
Loading
@@ -62,7 +62,7 @@
.card-header Transfer group
.card-body
= form_for @group, url: transfer_group_path(@group), method: :put do |f|
.form-group
.form-group.row
= dropdown_tag('Select parent group', options: { toggle_class: 'js-groups-dropdown', title: 'Parent Group', filter: true, dropdown_class: 'dropdown-open-top dropdown-group-transfer', placeholder: "Search groups", data: { data: parent_group_options(@group) } })
= hidden_field_tag 'new_parent_group_id'
 
Loading
Loading
= form_for [@group, @milestone], html: { class: 'form-horizontal milestone-form common-note-form js-quick-submit js-requires-input' } do |f|
= form_for [@group, @milestone], html: { class: 'milestone-form common-note-form js-quick-submit js-requires-input' } do |f|
.row
= form_errors(@milestone)
 
.col-md-6
.form-group
.form-group.row
= f.label :title, "Title", class: "col-form-label"
.col-sm-10
= f.text_field :title, maxlength: 255, class: "form-control", required: true, autofocus: true
.form-group.milestone-description
.form-group.row.milestone-description
= f.label :description, "Description", class: "col-form-label"
.col-sm-10
= render layout: 'projects/md_preview', locals: { url: group_preview_markdown_path } do
Loading
Loading
Loading
Loading
@@ -8,11 +8,11 @@
New Group
%hr
 
= form_for @group, html: { class: 'group-form form-horizontal gl-show-field-errors' } do |f|
= form_for @group, html: { class: 'group-form gl-show-field-errors' } do |f|
= form_errors(@group)
= render 'shared/group_form', f: f, autofocus: true
 
.form-group.group-description-holder
.form-group.row.group-description-holder
= f.label :avatar, "Group avatar", class: 'col-form-label'
.col-sm-10
= render 'shared/choose_group_avatar_button', f: f
Loading
Loading
@@ -21,7 +21,7 @@
 
= render 'create_chat_team', f: f if Gitlab.config.mattermost.enabled
 
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
= render 'shared/group_tips'
 
Loading
Loading
Loading
Loading
@@ -461,22 +461,22 @@
%code form.horizontal-form
 
.example
%form.form-horizontal
.form-group
%form
.form-group.row
%label.col-sm-2.col-form-label{ :for => "inputEmail3" } Email
.col-sm-10
%input#inputEmail3.form-control{ :placeholder => "Email", :type => "email" }/
.form-group
.form-group.row
%label.col-sm-2.col-form-label{ :for => "inputPassword3" } Password
.col-sm-10
%input#inputPassword3.form-control{ :placeholder => "Password", :type => "password" }/
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
.form-check
%label
%input{ :type => "checkbox" }/
Remember me
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
%button.btn.btn-secondary{ :type => "submit" } Sign in
 
Loading
Loading
Loading
Loading
@@ -5,20 +5,20 @@
Import projects from FogBugz
%hr
 
= form_tag callback_import_fogbugz_path, class: 'form-horizontal' do
= form_tag callback_import_fogbugz_path do
%p
To get started you enter your FogBugz URL and login information below.
In the next steps, you'll be able to map users and select the projects
you want to import.
.form-group
.form-group.row
= label_tag :uri, 'FogBugz URL', class: 'col-form-label'
.col-sm-4
= text_field_tag :uri, nil, placeholder: 'https://mycompany.fogbugz.com', class: 'form-control'
.form-group
.form-group.row
= label_tag :email, 'FogBugz Email', class: 'col-form-label'
.col-sm-4
= text_field_tag :email, nil, class: 'form-control'
.form-group
.form-group.row
= label_tag :password, 'FogBugz Password', class: 'col-form-label'
.col-sm-4
= password_field_tag :password, nil, class: 'form-control'
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@
Import projects from FogBugz
%hr
 
= form_tag create_user_map_import_fogbugz_path, class: 'form-horizontal' do
= form_tag create_user_map_import_fogbugz_path do
%p
Customize how FogBugz email addresses and usernames are imported into GitLab.
In the next step, you'll be able to select the projects you want to import.
Loading
Loading
Loading
Loading
@@ -10,12 +10,12 @@
= succeed '.' do
= link_to 'Personal Access Token', 'https://github.com/gogits/go-gogs-client/wiki#access-token'
 
= form_tag personal_access_token_import_gitea_path, class: 'form-horizontal' do
.form-group
= form_tag personal_access_token_import_gitea_path do
.form-group.row
= label_tag :gitea_host_url, 'Gitea Host URL', class: 'col-form-label'
.col-sm-4
= text_field_tag :gitea_host_url, nil, placeholder: 'https://try.gitea.io', class: 'form-control'
.form-group
.form-group.row
= label_tag :personal_access_token, 'Personal Access Token', class: 'col-form-label'
.col-sm-4
= text_field_tag :personal_access_token, nil, class: 'form-control'
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@
Import projects from Google Code
%hr
 
= form_tag callback_import_google_code_path, class: 'form-horizontal', multipart: true do
= form_tag callback_import_google_code_path, multipart: true do
%p
Follow the steps below to export your Google Code project data.
In the next step, you'll be able to select the projects you want to import.
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@
Import projects from Google Code
%hr
 
= form_tag create_user_map_import_google_code_path, class: 'form-horizontal' do
= form_tag create_user_map_import_google_code_path do
%p
Customize how Google Code email addresses and usernames are imported into GitLab.
In the next step, you'll be able to select the projects you want to import.
Loading
Loading
@@ -36,7 +36,7 @@
will add "By <a href="#">johnsmith@example.com</a>" to all issues and comments originally created by johnsmith@example.com.
By default, the email address or username is masked to ensure the user's privacy. Use this option if you want to show the full email address.
 
.form-group
.form-group.row
.col-sm-12
= text_area_tag :user_map, JSON.pretty_generate(@user_map), class: 'form-control', rows: 15
 
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- header_title "New Password"
%h3.page-title Setup new password
%hr
= form_for @user, url: profile_password_path, method: :post, html: { class: 'form-horizontal '} do |f|
= form_for @user, url: profile_password_path, method: :post do |f|
%p.slead
Please set a new password before proceeding.
%br
Loading
Loading
@@ -11,13 +11,13 @@
= form_errors(@user)
 
- unless @user.password_automatically_set?
.form-group
.form-group.row
= f.label :current_password, class: 'col-form-label'
.col-sm-10= f.password_field :current_password, required: true, class: 'form-control'
.form-group
.form-group.row
= f.label :password, class: 'col-form-label'
.col-sm-10= f.password_field :password, required: true, class: 'form-control'
.form-group
.form-group.row
= f.label :password_confirmation, class: 'col-form-label'
.col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control'
Loading
Loading
Loading
Loading
@@ -5,8 +5,8 @@
%a.close{ href: "#", "data-dismiss" => "modal" } ×
%h3.page-title= _('Create New Directory')
.modal-body
= form_tag project_create_dir_path(@project, @id), method: :post, remote: false, class: 'form-horizontal js-create-dir-form js-quick-submit js-requires-input' do
.form-group
= form_tag project_create_dir_path(@project, @id), method: :post, remote: false, class: 'js-create-dir-form js-quick-submit js-requires-input' do
.form-group.row
= label_tag :dir_name, _('Directory name'), class: 'col-form-label'
.col-sm-10
= text_field_tag :dir_name, params[:dir_name], required: true, class: 'form-control'
Loading
Loading
Loading
Loading
@@ -6,10 +6,10 @@
%h3.page-title Delete #{@blob.name}
 
.modal-body
= form_tag project_blob_path(@project, @id), method: :delete, class: 'form-horizontal js-delete-blob-form js-quick-submit js-requires-input' do
= form_tag project_blob_path(@project, @id), method: :delete, class: 'js-delete-blob-form js-quick-submit js-requires-input' do
= render 'shared/new_commit_form', placeholder: "Delete #{@blob.name}"
 
.form-group
.form-group.row
.col-sm-offset-2.col-sm-10
= button_tag 'Delete file', class: 'btn btn-remove btn-remove-file'
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
Loading
Loading
@@ -5,7 +5,7 @@
%a.close{ href: "#", "data-dismiss" => "modal" } &times;
%h3.page-title= title
.modal-body
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form form-horizontal', data: { method: method } do
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form', data: { method: method } do
.dropzone
.dropzone-previews.blob-upload-dropzone-previews
%p.dz-message.light
Loading
Loading
Loading
Loading
@@ -24,7 +24,7 @@
= link_to '#preview', 'data-preview-url' => project_preview_blob_path(@project, @id) do
= editing_preview_title(@blob.name)
 
= form_tag(project_update_blob_path(@project, @id), method: :put, class: 'form-horizontal js-quick-submit js-requires-input js-edit-blob-form', data: blob_editor_paths) do
= form_tag(project_update_blob_path(@project, @id), method: :put, class: 'js-quick-submit js-requires-input js-edit-blob-form', data: blob_editor_paths) do
= render 'projects/blob/editor', ref: @ref, path: @path, blob_data: @blob.data
= render 'shared/new_commit_form', placeholder: "Update #{@blob.name}"
= hidden_field_tag 'last_commit_sha', @last_commit_sha
Loading
Loading
Loading
Loading
@@ -7,7 +7,7 @@
New file
= render 'template_selectors'
.file-editor
= form_tag(project_create_blob_path(@project, @id), method: :post, class: 'form-horizontal js-edit-blob-form js-new-blob-form js-quick-submit js-requires-input', data: blob_editor_paths) do
= form_tag(project_create_blob_path(@project, @id), method: :post, class: 'js-edit-blob-form js-new-blob-form js-quick-submit js-requires-input', data: blob_editor_paths) do
= render 'projects/blob/editor', ref: @ref
= render 'shared/new_commit_form', placeholder: "Add new file"
 
Loading
Loading
Loading
Loading
@@ -9,13 +9,13 @@
New Branch
%hr
 
= form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "form-horizontal js-create-branch-form js-requires-input" do
.form-group
= form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "js-create-branch-form js-requires-input" do
.form-group.row
= label_tag :branch_name, nil, class: 'col-form-label'
.col-sm-10
= text_field_tag :branch_name, params[:branch_name], required: true, autofocus: true, class: 'form-control js-branch-name'
.form-text.text-muted.text-danger.js-branch-name-error
.form-group
.form-group.row
= label_tag :ref, 'Create from', class: 'col-form-label'
.col-sm-10.create-from
.dropdown
Loading
Loading
Loading
Loading
@@ -20,8 +20,8 @@
.modal-body
- if description
%p.append-bottom-20= description
= form_tag [type.underscore, @project.namespace.becomes(Namespace), @project, commit], method: :post, remote: false, class: "form-horizontal js-#{type}-form js-requires-input" do
.form-group.branch
= form_tag [type.underscore, @project.namespace.becomes(Namespace), @project, commit], method: :post, remote: false, class: "js-#{type}-form js-requires-input" do
.form-group.row.branch
= label_tag 'start_branch', branch_label, class: 'col-form-label'
.col-sm-10
= hidden_field_tag :start_branch, @project.default_branch, id: 'start_branch'
Loading
Loading
= form_for [@project.namespace.becomes(Namespace), @project, @deploy_keys.new_key], url: namespace_project_deploy_keys_path, html: { class: "js-requires-input" } do |f|
= form_errors(@deploy_keys.new_key)
.form-group
.form-group.row
= f.label :title, class: "label-light"
= f.text_field :title, class: 'form-control', required: true
.form-group
.form-group.row
= f.label :key, class: "label-light"
= f.text_area :key, class: "form-control", rows: 5, required: true
.form-group
.form-group.row
%p.light.append-bottom-0
Paste a machine public key here. Read more about how to generate it
= link_to "here", help_page_path("ssh/README")
 
= f.fields_for :deploy_keys_projects do |deploy_keys_project_form|
.form-group
.form-group.row
.form-check
= deploy_keys_project_form.label :can_push do
= deploy_keys_project_form.check_box :can_push
%strong Write access allowed
.form-group
.form-group.row
%p.light.append-bottom-0
Allow this key to push to repository as well? (Default only allows pull access.)
 
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