BigW Consortium Gitlab

_new_group_member.html.haml 1.13 KB
Newer Older
1 2 3
= form_for @group_member, url: group_group_members_path(@group), html: { class: 'users-project-form users-group-form' } do |f|
  .row
    .col-md-4.col-lg-6
Phil Hughes committed
4
      = users_select_tag(:user_ids, multiple: true, class: 'input-clamp', scope: :all, email_user: true)
5
      .help-block.append-bottom-10
6
        Search for users by name, username, or email, or invite new ones using their email address.
7

8 9 10 11 12
    .col-md-3.col-lg-2
      = select_tag :access_level, options_for_select(GroupMember.access_level_roles, @group_member.access_level), class: "form-control project-access-select"
      .help-block.append-bottom-10
        = link_to "Read more", help_page_path("user/permissions"), class: "vlink"
        about role permissions
13

14
    .col-md-3.col-lg-2
15
      .clearable-input
16
        = text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
17
        %i.clear-icon.js-clear-input
18
      .help-block.append-bottom-10
Douwe Maan committed
19
        On this date, the user(s) will automatically lose access to this group and all of its projects.
20

21 22
    .col-md-2
      = f.submit 'Add to group', class: "btn btn-create btn-block"