Commit 3230df5fbe3125461d2668483353a7f93e50c60a

Authored by Dmitriy Zaporozhets
1 parent 66a91c4f

Style new branch/tag forms

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/projects/branches/new.html.haml
1 %h3.page-title 1 %h3.page-title
2 %i.icon-code-fork 2 %i.icon-code-fork
3 New branch 3 New branch
4 -= form_tag project_branches_path, method: :post do 4 += form_tag project_branches_path, method: :post, class: "form-horizontal" do
5 .form-group 5 .form-group
6 = label_tag :branch_name, 'Name for new branch', class: 'control-label' 6 = label_tag :branch_name, 'Name for new branch', class: 'control-label'
7 .col-sm-10 7 .col-sm-10
8 - = text_field_tag :branch_name, nil, placeholder: 'feature/dashboard', required: true, tabindex: 1 8 + = text_field_tag :branch_name, nil, placeholder: 'feature/dashboard', required: true, tabindex: 1, class: 'form-control'
9 .form-group 9 .form-group
10 = label_tag :ref, 'Create from', class: 'control-label' 10 = label_tag :ref, 'Create from', class: 'control-label'
11 .col-sm-10 11 .col-sm-10
12 - = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2 12 + = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
13 .light branch name or commit SHA 13 .light branch name or commit SHA
14 .form-actions 14 .form-actions
15 = submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3 15 = submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3
app/views/projects/new.html.haml
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 %strong Project name 9 %strong Project name
10 .col-sm-10 10 .col-sm-10
11 = f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true 11 = f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true
12 - %span.help-inline 12 + .help-inline
13 = link_to "#", class: 'js-toggle-visibility-link' do 13 = link_to "#", class: 'js-toggle-visibility-link' do
14 %span Customize repository name? 14 %span Customize repository name?
15 15
app/views/projects/tags/new.html.haml
1 %h3.page-title 1 %h3.page-title
2 %i.icon-code-fork 2 %i.icon-code-fork
3 New tag 3 New tag
4 -= form_tag project_tags_path, method: :post do 4 += form_tag project_tags_path, method: :post, class: "form-horizontal" do
5 .form-group 5 .form-group
6 = label_tag :tag_name, 'Name for new tag', class: 'control-label' 6 = label_tag :tag_name, 'Name for new tag', class: 'control-label'
7 .col-sm-10 7 .col-sm-10
8 - = text_field_tag :tag_name, nil, placeholder: 'v3.0.1', required: true, tabindex: 1 8 + = text_field_tag :tag_name, nil, placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control'
9 .form-group 9 .form-group
10 = label_tag :ref, 'Create from', class: 'control-label' 10 = label_tag :ref, 'Create from', class: 'control-label'
11 .col-sm-10 11 .col-sm-10
12 - = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2 12 + = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
13 .light Branch name or commit SHA 13 .light Branch name or commit SHA
14 .form-actions 14 .form-actions
15 = submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3 15 = submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3