BigW Consortium Gitlab

_team.html.haml 817 Bytes
Newer Older
1
.panel.panel-default
2 3 4 5 6
  .panel-heading
    %strong #{@project.name}
    project members
    %small
      (#{members.count})
7 8 9 10
    .pull-right
      = form_tag namespace_project_project_members_path(@project.namespace, @project), 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 }
11
        = button_tag class: 'btn', title: 'Search' do
12 13
          = icon("search")
  %ul.content-list
14
    - members.each do |project_member|
15
      = render 'project_member', member: project_member
16 17 18 19 20 21

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