2020-01-13 10:07:53 -05:00
|
|
|
- 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]
|
2017-06-02 14:35:27 -04:00
|
|
|
.row
|
|
|
|
.col-sm-12
|
2020-01-13 10:07:53 -05:00
|
|
|
= form_tag submit_url, class: 'invite-group-form js-requires-input', method: :post do
|
2017-06-02 14:35:27 -04:00
|
|
|
.form-group
|
2020-01-13 10:07:53 -05:00
|
|
|
= label_tag group_link_field, _("Select a group to invite"), class: "label-bold"
|
|
|
|
= groups_select_tag(group_link_field, data: { skip_groups: @skip_groups }, class: 'input-clamp qa-group-select-field', required: true)
|
2017-06-02 14:35:27 -04:00
|
|
|
.form-group
|
2020-01-13 10:07:53 -05:00
|
|
|
= label_tag group_access_field, _("Max access level"), class: "label-bold"
|
2017-06-02 14:35:27 -04:00
|
|
|
.select-wrapper
|
2020-01-13 10:07:53 -05:00
|
|
|
= select_tag group_access_field, options_for_select(access_levels, default_access_level), data: { qa_selector: 'group_access_field' }, class: "form-control select-control"
|
2017-06-19 09:50:30 -04:00
|
|
|
= icon('chevron-down')
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted.append-bottom-10
|
2019-01-14 16:39:42 -05:00
|
|
|
- permissions_docs_path = help_page_path('user/permissions')
|
|
|
|
- link_start = %q{<a href="%{url}">}.html_safe % { url: permissions_docs_path }
|
|
|
|
= _("%{link_start}Read more%{link_end} about role permissions").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
|
2017-06-02 14:35:27 -04:00
|
|
|
.form-group
|
2018-09-07 02:09:13 -04:00
|
|
|
= label_tag :expires_at, _('Access expiration date'), class: 'label-bold'
|
2017-06-02 14:35:27 -04:00
|
|
|
.clearable-input
|
2018-09-07 02:09:13 -04:00
|
|
|
= text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date-groups', placeholder: _('Expiration date'), id: 'expires_at_groups'
|
2017-06-02 14:35:27 -04:00
|
|
|
%i.clear-icon.js-clear-input
|
2019-09-13 09:26:31 -04:00
|
|
|
= submit_tag _("Invite"), class: "btn btn-success", data: { qa_selector: 'invite_group_button' }
|