2018-04-12 16:11:22 -04:00
|
|
|
= form_for [:admin, @group] do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@group)
|
2014-10-20 18:25:44 -04:00
|
|
|
= render 'shared/group_form', f: f
|
2014-06-03 09:40:50 -04:00
|
|
|
|
2018-05-31 08:00:36 -04:00
|
|
|
= render_if_exists 'shared/repository_size_limit_setting', form: f, type: :group
|
|
|
|
= render_if_exists 'admin/namespace_plan', f: f
|
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row.group-description-holder
|
2018-06-16 00:45:36 -04:00
|
|
|
= f.label :avatar, _("Group avatar"), class: 'col-form-label col-sm-2'
|
2014-06-03 09:40:50 -04:00
|
|
|
.col-sm-10
|
2014-10-20 17:29:49 -04:00
|
|
|
= render 'shared/choose_group_avatar_button', f: f
|
2014-06-03 09:40:50 -04:00
|
|
|
|
2016-11-14 08:11:55 -05:00
|
|
|
= render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group
|
2016-03-21 18:11:24 -04:00
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-13 13:49:32 -04:00
|
|
|
.offset-sm-2.col-sm-10
|
2016-07-15 17:46:29 -04:00
|
|
|
= render 'shared/allow_request_access', form: f
|
|
|
|
|
2017-01-24 16:09:58 -05:00
|
|
|
= render 'groups/group_admin_settings', f: f
|
2016-09-01 19:49:48 -04:00
|
|
|
|
2018-05-31 08:00:36 -04:00
|
|
|
= render_if_exists 'namespaces/shared_runners_minutes_settings', group: @group, form: f
|
|
|
|
|
2014-06-03 09:40:50 -04:00
|
|
|
- if @group.new_record?
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-13 13:49:32 -04:00
|
|
|
.offset-sm-2.col-sm-10
|
2015-03-06 21:36:22 -05:00
|
|
|
.alert.alert-info
|
2014-10-20 17:43:51 -04:00
|
|
|
= render 'shared/group_tips'
|
2014-06-03 09:40:50 -04:00
|
|
|
.form-actions
|
2018-06-16 00:45:36 -04:00
|
|
|
= f.submit _('Create group'), class: "btn btn-create"
|
|
|
|
= link_to _('Cancel'), admin_groups_path, class: "btn btn-cancel"
|
2014-06-03 09:40:50 -04:00
|
|
|
|
|
|
|
- else
|
|
|
|
.form-actions
|
2018-06-16 00:45:36 -04:00
|
|
|
= f.submit _('Save changes'), class: "btn btn-save"
|
|
|
|
= link_to _('Cancel'), admin_group_path(@group), class: "btn btn-cancel"
|
2018-05-31 08:00:36 -04:00
|
|
|
|
|
|
|
= render_if_exists 'ldap_group_links/ldap_syncrhonizations', group: @group
|