debian-mirror-gitlab/app/views/admin/groups/_form.html.haml

42 lines
1.6 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
= form_for [:admin, @group] do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@group)
2015-04-26 12:48:37 +05:30
= render 'shared/group_form', f: f
2021-02-22 17:27:13 +05:30
= render 'shared/group_form_description', f: f
2014-09-02 18:07:02 +05:30
2021-04-29 21:17:54 +05:30
= render 'shared/admin/admin_note_form', f: f
2019-09-04 21:01:54 +05:30
= render_if_exists 'shared/old_repository_size_limit_setting', form: f, type: :group
2018-11-08 19:23:39 +05:30
= render_if_exists 'admin/namespace_plan', f: f
.form-group.row.group-description-holder
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :avatar, _("Group avatar")
2014-09-02 18:07:02 +05:30
.col-sm-10
2019-07-07 11:18:12 +05:30
= render 'shared/choose_avatar_button', f: f
2014-09-02 18:07:02 +05:30
2018-12-13 13:39:08 +05:30
= render 'shared/old_visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group, with_label: false
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
.offset-sm-2.col-sm-10
2018-12-13 13:39:08 +05:30
= render 'shared/allow_request_access', form: f, bold_label: true
2016-08-24 12:49:21 +05:30
2017-08-17 22:00:37 +05:30
= render 'groups/group_admin_settings', f: f
2016-09-29 09:46:39 +05:30
2018-11-08 19:23:39 +05:30
= render_if_exists 'namespaces/shared_runners_minutes_settings', group: @group, form: f
2014-09-02 18:07:02 +05:30
- if @group.new_record?
2018-11-08 19:23:39 +05:30
.form-group.row
.offset-sm-2.col-sm-10
2020-11-24 15:15:51 +05:30
.gl-alert.gl-alert-info
= sprite_icon('information-o', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
.gl-alert-body
= render 'shared/group_tips'
2014-09-02 18:07:02 +05:30
.form-actions
2021-04-17 20:07:23 +05:30
= f.submit _('Create group'), class: "gl-button btn btn-confirm"
2021-03-11 19:13:27 +05:30
= link_to _('Cancel'), admin_groups_path, class: "gl-button btn btn-default btn-cancel"
2014-09-02 18:07:02 +05:30
- else
.form-actions
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }
2021-01-03 14:25:43 +05:30
= link_to _('Cancel'), admin_group_path(@group), class: "gl-button btn btn-cancel"