Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-21 12:39:41 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-21 12:39:41 +0400
commitfb5c1dd8f0ab630f785989537713aad1758ae5a9 (patch)
tree17d24c7b418d65f74853382dcbf3d3a81e3954d8 /app/views/admin/groups/_form.html.haml
parentd545bb8de46990ead70d13839ee198083ad2d03f (diff)
parent3a47ed979a62e91fdcd7d05ebb309759788a23b6 (diff)
Merge pull request #8113 from cirosantilli/factor-group-forms
Factor group forms
Diffstat (limited to 'app/views/admin/groups/_form.html.haml')
-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 6aca358a0c9..f4d7e25fd74 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'