summaryrefslogtreecommitdiff
path: root/app/views/groups/new.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-08 18:39:03 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-08 18:39:03 +0200
commiteace1ce645f285f01b49128328c18f582376bc3a (patch)
tree826c57fcdb65d62845637732969f98ae6fedcfe3 /app/views/groups/new.html.haml
parent3c7a80646198c546a2cfd4aa05b7724f51a6eb7f (diff)
downloadgitlab-ce-eace1ce645f285f01b49128328c18f582376bc3a.tar.gz
Fix new group form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups/new.html.haml')
-rw-r--r--app/views/groups/new.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/groups/new.html.haml b/app/views/groups/new.html.haml
index 14b60687ed2..955a107e542 100644
--- a/app/views/groups/new.html.haml
+++ b/app/views/groups/new.html.haml
@@ -1,19 +1,20 @@
-= form_for @group do |f|
+= form_for @group, html: { class: 'group-form form-horizontal' } do |f|
- if @group.errors.any?
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group
- = f.label :name do
+ = f.label :name, class: 'control-label' do
Group name
.col-sm-10
- = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control left"
+ = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control"
.form-group.group-description-holder
- = f.label :description, "Details"
+ = f.label :description, "Details", class: 'control-label'
.col-sm-10
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4
.form-group
+ .col-sm-2
.col-sm-10
%ul
%li A group is a collection of several projects