BigW Consortium Gitlab

_new_project_member.html.haml 1.15 KB
Newer Older
Phil Hughes committed
1
= form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'users-project-form' } do |f|
Phil Hughes committed
2 3
  .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)
Phil Hughes committed
5
      .help-block.append-bottom-10
6
        Search for users by name, username, or email, or invite new ones using their email address.
7

Phil Hughes committed
8 9 10 11 12
    .col-md-3.col-lg-2
      = select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_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

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

Phil Hughes committed
21 22
    .col-md-2
      = f.submit "Add to project", class: "btn btn-create btn-block"