debian-mirror-gitlab/app/views/groups/group_members/index.html.haml

36 lines
1.2 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Members"
2014-09-02 18:07:02 +05:30
.group-members-page.prepend-top-default
2016-08-24 12:49:21 +05:30
- if can?(current_user, :admin_group_member, @group)
2015-12-23 02:04:40 +05:30
.panel.panel-default
.panel-heading
Add new user to group
.panel-body
%p.light
Members of group have access to all group projects.
2015-12-23 02:04:40 +05:30
.new-group-member-holder
= render "new_group_member"
2015-04-26 12:48:37 +05:30
2016-08-24 12:49:21 +05:30
= render 'shared/members/requests', membership_source: @group, requesters: @requesters
2015-12-23 02:04:40 +05:30
.panel.panel-default
.panel-heading
%strong #{@group.name}
group members
2016-08-24 12:49:21 +05:30
%span.badge= @members.size
2016-04-02 18:10:28 +05:30
.controls
2015-12-23 02:04:40 +05:30
= 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 }
= button_tag class: 'btn', title: 'Search' do
= icon("search")
%ul.content-list
2016-08-24 12:49:21 +05:30
= render partial: 'shared/members/member', collection: @members, as: :member
= paginate @members, theme: 'gitlab'
2014-09-02 18:07:02 +05:30
2015-11-26 14:37:03 +05:30
:javascript
$('form.member-search-form').on('submit', function(event) {
event.preventDefault();
Turbolinks.visit(this.action + '?' + $(this).serialize());
});