summaryrefslogtreecommitdiff
path: root/app/views/projects/project_members/_new_project_group.html.haml
blob: 745707691177d9a5f3b684c1ac295bedc7210807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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", 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
          = link_to _("Read more"), help_page_path("user/permissions"), class: "vlink"
          about role permissions
      .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"