BigW Consortium Gitlab

_new_project_member.html.haml 1.37 KB
Newer Older
1 2
.row
  .col-sm-12
3
    = form_for @project_member, as: :project_member, url: project_project_members_path(@project), html: { class: 'users-project-form' } do |f|
4 5 6 7 8
      .form-group
        = label_tag :user_ids, "Select members to invite", class: "label-light"
        = users_select_tag(:user_ids, multiple: true, class: "input-clamp", scope: :all, email_user: true, placeholder: "Search for members to update or invite")
      .form-group
        = label_tag :access_level, "Choose a role permission", class: "label-light"
9 10 11
        .select-wrapper
          = select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_member.access_level), class: "form-control project-access-select select-control"
          = icon('chevron-down')
12 13 14 15 16 17 18 19 20
        .help-block.append-bottom-10
          = link_to "Read more", help_page_path("user/permissions"), class: "vlink"
          about role permissions
      .form-group
        .clearable-input
          = label_tag :expires_at, 'Access expiration date', class: 'label-light'
          = text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
          %i.clear-icon.js-clear-input
      = f.submit "Add to project", class: "btn btn-create"
21
      = link_to "Import", import_project_project_members_path(@project), class: "btn btn-default", title: "Import members from another project"