You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.8 KiB
33 lines
1.8 KiB
5 years ago
|
<%
|
||
|
define_breadcrumbs do
|
||
|
add_breadcrumb('竞赛列表', cooperative_competitions_path)
|
||
|
add_breadcrumb(@competition.name)
|
||
|
end
|
||
|
%>
|
||
|
|
||
|
<div class="box search-form-container flex-column mb-0 pb-0 competition-enroll-list-form">
|
||
|
<ul class="nav nav-tabs w-100 search-form-tabs">
|
||
|
<li class="nav-item">
|
||
|
<%= link_to '报名列表', cooperative_competition_enroll_lists_path(@competition), class: "nav-link search-form-tab active" %>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<%= link_to '获奖证书审批', cooperative_competition_competition_prize_users_path(@competition), class: "nav-link search-form-tab" %>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="d-flex">
|
||
|
<%= form_tag(cooperative_competition_enroll_lists_path(unsafe_params), method: :get, class: 'form-inline search-form mt-3 flex-1 d-flex', remote: true) do %>
|
||
|
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: '战队名称检索') %>
|
||
|
<%= text_field_tag(:school, params[:school], class: 'form-control col-sm-2 ml-3', placeholder: '队员学校名称检索') %>
|
||
|
<%= text_field_tag(:location, params[:location], class: 'form-control col-sm-2 ml-3', placeholder: '队员地区检索') %>
|
||
|
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
|
||
|
<%= link_to "清除", cooperative_competition_enroll_lists_path(@competition), class: "btn btn-default",'data-disable-with': '清除中...' %>
|
||
|
<% end %>
|
||
|
|
||
|
<a href="javascript:void(0)" class="btn btn-primary mt-3" id="enroll-lists-export" data-competition-id="<%= @competition.id %>">导出</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="box cooperative-list-container competition-enroll-list-container">
|
||
|
<%= render(partial: 'cooperative/enroll_lists/list', locals: { enroll_lists: @enroll_lists }) %>
|
||
|
</div>
|