summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-02 13:36:47 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-02 13:36:47 +0200
commit3230df5fbe3125461d2668483353a7f93e50c60a (patch)
treec0bac243a8929351501b5a9fa8aeb33e303a335a
parent66a91c4fabe2b777d0e63329c466614ed76c6b83 (diff)
downloadgitlab-ce-3230df5fbe3125461d2668483353a7f93e50c60a.tar.gz
Style new branch/tag forms
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/projects/branches/new.html.haml6
-rw-r--r--app/views/projects/new.html.haml2
-rw-r--r--app/views/projects/tags/new.html.haml6
3 files changed, 7 insertions, 7 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml
index 09b02789f0b..d173065afd2 100644
--- a/app/views/projects/branches/new.html.haml
+++ b/app/views/projects/branches/new.html.haml
@@ -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
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index c3e1e33499a..4f81f050f60 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -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?
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml
index 73e1c4ff1c2..a9fd97f8915 100644
--- a/app/views/projects/tags/new.html.haml
+++ b/app/views/projects/tags/new.html.haml
@@ -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