forked from Gitlink/forgeplus
30 lines
1.7 KiB
Plaintext
30 lines
1.7 KiB
Plaintext
<% define_admin_breadcrumbs do %>
|
|
<% add_admin_breadcrumb('题库审批') %>
|
|
<% end %>
|
|
|
|
<div class="box search-form-container flex-column mb-0 pb-0 item-authentication-list-form">
|
|
<ul class="nav nav-tabs w-100 search-form-tabs">
|
|
<li class="nav-item">
|
|
<%= link_to '待审批', admins_item_authentications_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_item_authentications_path(status: :processed), remote: true, 'data-value': 'processed',
|
|
class: "nav-link search-form-tab #{params[:status] != 'pending' ? 'active' : ''}" %>
|
|
</li>
|
|
</ul>
|
|
|
|
<%= form_tag(admins_item_authentications_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 item-authentication-list-container">
|
|
<%= render(partial: 'admins/item_authentications/shared/list', locals: { applies: @applies }) %>
|
|
</div> |