_new_group_member.html.haml 906 Bytes
Newer Older
1
= form_for @group_member, url: group_group_members_path(@group), html: { class: 'form-horizontal users-group-form' } do |f|
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2 3
  .form-group
    = f.label :user_ids, "People", class: 'control-label'
4 5 6
    .col-sm-10
      = users_select_tag(:user_ids, multiple: true, class: 'input-large', scope: :all, email_user: true)
      .help-block
7
        Search for users by name, username, or email, or invite new ones using their email address.
8

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9
  .form-group
10
    = f.label :access_level, "Group Access", class: 'control-label'
11
    .col-sm-10
12
      = select_tag :access_level, options_for_select(GroupMember.access_level_roles, @group_member.access_level), class: "project-access-select select2"
13 14
      .help-block
        Read more about role permissions
15
        %strong= link_to "here", help_page_path("user/permissions"), class: "vlink"
16

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17
  .form-actions
18
    = f.submit 'Add users to group', class: "btn btn-create"