Style new branch/tag forms
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
66a91c4fab
commit
3230df5fbe
3 changed files with 7 additions and 7 deletions
|
@ -1,15 +1,15 @@
|
|||
%h3.page-title
|
||||
%i.icon-code-fork
|
||||
New branch
|
||||
= form_tag project_branches_path, method: :post do
|
||||
= form_tag project_branches_path, method: :post, class: "form-horizontal" do
|
||||
.form-group
|
||||
= label_tag :branch_name, 'Name for new branch', class: 'control-label'
|
||||
.col-sm-10
|
||||
= text_field_tag :branch_name, nil, placeholder: 'feature/dashboard', required: true, tabindex: 1
|
||||
= text_field_tag :branch_name, nil, placeholder: 'feature/dashboard', required: true, tabindex: 1, class: 'form-control'
|
||||
.form-group
|
||||
= label_tag :ref, 'Create from', class: 'control-label'
|
||||
.col-sm-10
|
||||
= text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2
|
||||
= text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
|
||||
.light branch name or commit SHA
|
||||
.form-actions
|
||||
= submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%strong Project name
|
||||
.col-sm-10
|
||||
= f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true
|
||||
%span.help-inline
|
||||
.help-inline
|
||||
= link_to "#", class: 'js-toggle-visibility-link' do
|
||||
%span Customize repository name?
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
%h3.page-title
|
||||
%i.icon-code-fork
|
||||
New tag
|
||||
= form_tag project_tags_path, method: :post do
|
||||
= form_tag project_tags_path, method: :post, class: "form-horizontal" do
|
||||
.form-group
|
||||
= label_tag :tag_name, 'Name for new tag', class: 'control-label'
|
||||
.col-sm-10
|
||||
= text_field_tag :tag_name, nil, placeholder: 'v3.0.1', required: true, tabindex: 1
|
||||
= text_field_tag :tag_name, nil, placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control'
|
||||
.form-group
|
||||
= label_tag :ref, 'Create from', class: 'control-label'
|
||||
.col-sm-10
|
||||
= text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2
|
||||
= text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
|
||||
.light Branch name or commit SHA
|
||||
.form-actions
|
||||
= submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3
|
||||
|
|
Loading…
Reference in a new issue