2020-03-09 13:42:32 +05:30
- access_levels = local_assigns[:access_levels]
- default_access_level = local_assigns[:default_access_level]
- submit_url = local_assigns[:submit_url]
- can_import_members = local_assigns[:can_import_members?]
- import_path = local_assigns[:import_path]
2017-09-10 17:25:29 +05:30
.row
.col-sm-12
2020-03-09 13:42:32 +05:30
= form_tag submit_url, class: 'invite-users-form', method: :post do
2017-09-10 17:25:29 +05:30
.form-group
2019-10-12 21:52:04 +05:30
= label_tag :user_ids, _("GitLab member or Email address"), class: "label-bold"
2020-03-09 13:42:32 +05:30
= users_select_tag(:user_ids, multiple: true, class: 'input-clamp qa-member-select-field', scope: :all, email_user: true, placeholder: 'Search for members to update or invite')
2017-09-10 17:25:29 +05:30
.form-group
2019-03-02 22:35:43 +05:30
= label_tag :access_level, _("Choose a role permission"), class: "label-bold"
2017-09-10 17:25:29 +05:30
.select-wrapper
2020-03-09 13:42:32 +05:30
= select_tag :access_level, options_for_select(access_levels, default_access_level), class: "form-control project-access-select select-control"
2017-09-10 17:25:29 +05:30
= icon('chevron-down')
2018-11-08 19:23:39 +05:30
.form-text.text-muted.append-bottom-10
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 }
= _("%{link_start}Read more%{link_end} about role permissions").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2017-09-10 17:25:29 +05:30
.form-group
.clearable-input
2019-03-02 22:35:43 +05:30
= label_tag :expires_at, _('Access expiration date'), class: 'label-bold'
2017-09-10 17:25:29 +05:30
= text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
%i.clear-icon.js-clear-input
2020-03-09 13:42:32 +05:30
= submit_tag _("Invite"), class: "btn btn-success", data: { qa_selector: 'invite_member_button' }
- if can_import_members
= link_to _("Import"), import_path, class: "btn btn-default", title: _("Import members from another project")