summaryrefslogtreecommitdiff
path: root/app/views/projects/project_members/_new_project_group.html.haml
blob: d413048ca10b02f877da23ab7d6482538c9391dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.row
  .col-sm-12
    = form_tag project_group_links_path(@project), class: 'js-requires-input', method: :post do
      .form-group
        = label_tag :link_group_id, _("Select a group to invite"), class: "label-bold"
        = groups_select_tag(:link_group_id, data: { skip_groups: @skip_groups }, class: "input-clamp qa-group-select-field", required: true)
      .form-group
        = label_tag :link_group_access, _("Max access level"), class: "label-bold"
        .select-wrapper
          = select_tag :link_group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "form-control select-control"
          = icon('chevron-down')
        .form-text.text-muted.append-bottom-10
          - 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 }
      .form-group
        = label_tag :expires_at, _('Access expiration date'), class: 'label-bold'
        .clearable-input
          = text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date-groups', placeholder: _('Expiration date'), id: 'expires_at_groups'
          %i.clear-icon.js-clear-input
      = submit_tag _("Invite"), class: "btn btn-success", data: { qa_selector: 'invite_group_button' }