BigW Consortium Gitlab

index.html.haml 1.25 KB
Newer Older
1
- page_title "Members"
2

3
.group-members-page.prepend-top-default
4
  - if can?(current_user, :admin_group_member, @group)
5 6 7 8
    .panel.panel-default
      .panel-heading
        Add new user to group
      .panel-body
9 10
        %p.light
          Members of group have access to all group projects.
11 12
        .new-group-member-holder
          = render "new_group_member"
13

14
    = render 'shared/members/requests', membership_source: @group, requesters: @requesters
15

16 17 18 19
  .panel.panel-default
    .panel-heading
      %strong #{@group.name}
      group members
20
      %span.badge= @members.size
21
      .controls
22 23 24
        = form_tag group_group_members_path(@group), method: :get, class: 'form-inline member-search-form'  do
          .form-group
            = search_field_tag :search, params[:search], { placeholder: 'Find existing member by name', class: 'form-control', spellcheck: false }
25
          = button_tag class: 'btn', title: 'Search' do
26 27
            = icon("search")
    %ul.content-list
28 29
      = render partial: 'shared/members/member', collection: @members, as: :member
    = paginate @members, theme: 'gitlab'
30

31 32 33 34 35
:javascript
  $('form.member-search-form').on('submit', function(event) {
    event.preventDefault();
    Turbolinks.visit(this.action + '?' + $(this).serialize());
  });