summaryrefslogtreecommitdiff
path: root/app/views/projects/project_members/_new_shared_group.html.haml
blob: b7cc8dd7062a1671b9894aff84e3bbe21fea3d92 (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 namespace_project_group_links_path(@project.namespace, @project), class: 'js-requires-input', method: :post do
      .form-group
        = label_tag :link_group_id, "Select a group to share with", class: "label-light"
        = 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-light"
        .select-wrapper
          = select_tag :link_group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "form-control select-control"
          = icon('caret-down')
        .help-block.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-light'
        .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 "Share", class: "btn btn-create"