debian-mirror-gitlab/app/views/shared/members/_invite_group.html.haml

31 lines
2.1 KiB
Text
Raw Normal View History

2020-03-13 15:44:24 +05:30
- access_levels = local_assigns[:access_levels]
- default_access_level = local_assigns[:default_access_level]
- submit_url = local_assigns[:submit_url]
- group_link_field = local_assigns[:group_link_field]
- group_access_field = local_assigns[:group_access_field]
2021-09-04 01:27:46 +05:30
- groups_select_tag_data = local_assigns[:groups_select_tag_data]
2017-09-10 17:25:29 +05:30
.row
.col-sm-12
2020-03-13 15:44:24 +05:30
= form_tag submit_url, class: 'invite-group-form js-requires-input', method: :post do
2017-09-10 17:25:29 +05:30
.form-group
2020-03-13 15:44:24 +05:30
= label_tag group_link_field, _("Select a group to invite"), class: "label-bold"
2021-09-04 01:27:46 +05:30
= groups_select_tag(group_link_field, data: groups_select_tag_data, class: 'input-clamp qa-group-select-field', required: true)
.form-text.text-muted.gl-mb-3
= _('Group sharing provides access to all group members (including members who inherited group membership from a parent group).')
2017-09-10 17:25:29 +05:30
.form-group
2021-09-04 01:27:46 +05:30
= label_tag group_access_field, _("Max role"), class: "label-bold"
2017-09-10 17:25:29 +05:30
.select-wrapper
2020-03-13 15:44:24 +05:30
= select_tag group_access_field, options_for_select(access_levels, default_access_level), data: { qa_selector: 'group_access_field' }, class: "form-control select-control"
2021-01-29 00:20:46 +05:30
= sprite_icon('chevron-down', css_class: "gl-icon gl-absolute gl-top-3 gl-right-3 gl-text-gray-200")
2020-10-24 23:57:45 +05:30
.form-text.text-muted.gl-mb-3
2019-03-02 22:35:43 +05:30
- permissions_docs_path = help_page_path('user/permissions')
- link_start = %q{<a href="%{url}">}.html_safe % { url: permissions_docs_path }
2021-09-04 01:27:46 +05:30
= _("%{link_start}Learn more%{link_end} about roles.").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2017-09-10 17:25:29 +05:30
.form-group
2018-11-20 20:47:30 +05:30
= label_tag :expires_at, _('Access expiration date'), class: 'label-bold'
2017-09-10 17:25:29 +05:30
.clearable-input
2018-11-20 20:47:30 +05:30
= text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date-groups', placeholder: _('Expiration date'), id: 'expires_at_groups'
2020-11-24 15:15:51 +05:30
= sprite_icon('close', size: 16, css_class: 'clear-icon js-clear-input gl-text-gray-200')
2021-04-17 20:07:23 +05:30
= submit_tag _("Invite"), class: "gl-button btn btn-confirm gl-mr-3", data: { qa_selector: 'invite_group_button' }