mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
fd0e681aa2
Add pagination to teams page
23 lines
No EOL
618 B
Text
23 lines
No EOL
618 B
Text
<h1 class="title">Listing Teams</h1>
|
|
|
|
<p>Teams with no current members are not displayed.</p>
|
|
<p>Search for teams by name:</p>
|
|
|
|
<%= form_tag(teams_path, method: 'get', class: 'square search') do %>
|
|
<%= hidden_field_tag :direction, params[:direction] %>
|
|
<%= hidden_field_tag :sort, params[:sort] %>
|
|
<div class="fields query">
|
|
<%= text_field_tag :search, params[:search] %>
|
|
</div>
|
|
<div class="controls">
|
|
<%= submit_tag "Search", name: nil %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= will_paginate @teams %>
|
|
|
|
<div id="teams">
|
|
<%= render partial: 'list', locals: { teams: @teams } %>
|
|
</div>
|
|
|
|
<%= will_paginate @teams %> |