2015-11-24 11:11:45 -05:00
|
|
|
.panel.panel-default
|
2015-03-13 11:30:36 -04:00
|
|
|
.panel-heading
|
|
|
|
%strong #{@project.name}
|
|
|
|
project members
|
|
|
|
%small
|
|
|
|
(#{members.count})
|
2016-01-22 16:37:05 -05:00
|
|
|
.controls
|
2015-11-24 11:11:45 -05:00
|
|
|
= 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 }
|
2015-11-25 05:44:39 -05:00
|
|
|
= button_tag class: 'btn', title: 'Search' do
|
2015-11-24 11:11:45 -05:00
|
|
|
= icon("search")
|
|
|
|
%ul.content-list
|
2016-04-18 12:53:32 -04:00
|
|
|
= render partial: 'shared/members/member', collection: members, as: :member
|
2015-11-24 11:11:45 -05:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
$('form.member-search-form').on('submit', function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
Turbolinks.visit(this.action + '?' + $(this).serialize());
|
|
|
|
});
|