summaryrefslogtreecommitdiff
path: root/app/views/projects/project_members/_new_project_member.html.haml
blob: 79dcd7a6ee9acb501ef63897603233be50dcbd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
= form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'users-project-form' } do |f|
  .row
    .col-md-4.col-lg-6
      = users_select_tag(:user_ids, multiple: true, class: "input-clamp", scope: :all, email_user: true)
      .help-block.append-bottom-10
        Search for users by name, username, or email, or invite new ones using their email address.

    .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

    .col-md-3.col-lg-2
      .clearable-input
        = text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
        %i.clear-icon.js-clear-input
      .help-block.append-bottom-10
        On this date, the user(s) will automatically lose access to this project.

    .col-md-2
      = f.submit "Add to project", class: "btn btn-create btn-block"