summaryrefslogtreecommitdiff
path: root/app/views/admin/groups
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-21 00:25:44 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-21 00:25:44 +0200
commit3a47ed979a62e91fdcd7d05ebb309759788a23b6 (patch)
tree0eb7a694e42db28763c2c7b27d74dccf35c08458 /app/views/admin/groups
parent72abe9f679043a1ac566f60109b21cadace204d7 (diff)
downloadgitlab-ce-3a47ed979a62e91fdcd7d05ebb309759788a23b6.tar.gz
Factor group forms
Diffstat (limited to 'app/views/admin/groups')
-rw-r--r--app/views/admin/groups/_form.html.haml10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/admin/groups/_form.html.haml b/app/views/admin/groups/_form.html.haml
index c56863ce274..bc612307de6 100644
--- a/app/views/admin/groups/_form.html.haml
+++ b/app/views/admin/groups/_form.html.haml
@@ -2,16 +2,8 @@
- if @group.errors.any?
.alert.alert-danger
%span= @group.errors.full_messages.first
- .form-group.group_name_holder
- = f.label :name, class: 'control-label' do
- Group name
- .col-sm-10
- = f.text_field :name, placeholder: "Example Group", class: "form-control"
- .form-group.group-description-holder
- = f.label :description, "Details", class: 'control-label'
- .col-sm-10
- = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4
+ = render 'shared/group_form', f: f
.form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label'