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.
32 lines
1.8 KiB
32 lines
1.8 KiB
<% define_admin_breadcrumbs do %>
|
|
<% add_admin_breadcrumb('实训发布') %>
|
|
<% end %>
|
|
|
|
<div class="box search-form-container flex-column mb-0 pb-0 shixun-authorization-list-form">
|
|
<ul class="nav nav-tabs w-100 search-form-tabs">
|
|
<li class="nav-item">
|
|
<%= link_to '待审批', admins_shixun_authorizations_path(status: :pending), remote: true, 'data-value': 'pending',
|
|
class: "nav-link search-form-tab #{params[:status] == 'pending' ? 'active' : ''}" %>
|
|
</li>
|
|
<li class="nav-item">
|
|
<%= link_to '已审批', admins_shixun_authorizations_path(status: :processed), remote: true, 'data-value': 'processed',
|
|
class: "nav-link search-form-tab #{params[:status] != 'pending' ? 'active' : ''}" %>
|
|
</li>
|
|
</ul>
|
|
|
|
<%= form_tag(admins_shixun_authorizations_path(unsafe_params), method: :get, class: 'form-inline search-form justify-content-end mt-3', remote: true) do %>
|
|
<div class="form-group status-filter" style="<%= params[:status] != 'pending' ? '' : 'display: none;' %>">
|
|
<label for="status">审核状态:</label>
|
|
<% status_options = [['全部', 'processed'], ['已同意', 'agreed'], ['已拒绝', 'refused']] %>
|
|
<%= select_tag(:status, options_for_select(status_options), class: 'form-control') %>
|
|
</div>
|
|
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: '实训名称检索') %>
|
|
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="box admin-list-container shixun-authorization-list-container">
|
|
<%= render(partial: 'admins/shixun_authorizations/shared/list', locals: { applies: @applies, shixun_map: @shixun_map }) %>
|
|
</div>
|
|
|
|
<%= render(partial: 'admins/shared/admin_common_refuse_modal') %> |