Commit 3230df5fbe3125461d2668483353a7f93e50c60a
1 parent
66a91c4f
Exists in
spb-stable
and in
3 other branches
Style new branch/tag forms
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
7 additions
and
7 deletions
Show diff stats
app/views/projects/branches/new.html.haml
1 | 1 | %h3.page-title |
2 | 2 | %i.icon-code-fork |
3 | 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 | 5 | .form-group |
6 | 6 | = label_tag :branch_name, 'Name for new branch', class: 'control-label' |
7 | 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 | 9 | .form-group |
10 | 10 | = label_tag :ref, 'Create from', class: 'control-label' |
11 | 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 | 13 | .light branch name or commit SHA |
14 | 14 | .form-actions |
15 | 15 | = submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3 | ... | ... |
app/views/projects/new.html.haml
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | %strong Project name |
10 | 10 | .col-sm-10 |
11 | 11 | = f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true |
12 | - %span.help-inline | |
12 | + .help-inline | |
13 | 13 | = link_to "#", class: 'js-toggle-visibility-link' do |
14 | 14 | %span Customize repository name? |
15 | 15 | ... | ... |
app/views/projects/tags/new.html.haml
1 | 1 | %h3.page-title |
2 | 2 | %i.icon-code-fork |
3 | 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 | 5 | .form-group |
6 | 6 | = label_tag :tag_name, 'Name for new tag', class: 'control-label' |
7 | 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 | 9 | .form-group |
10 | 10 | = label_tag :ref, 'Create from', class: 'control-label' |
11 | 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 | 13 | .light Branch name or commit SHA |
14 | 14 | .form-actions |
15 | 15 | = submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3 | ... | ... |