|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="box search-form-container shixuns-list-form">
|
|
|
|
|
<%= form_tag(admins_shixuns_path, method: :get, class: 'form-inline search-form',remote:true) do %>
|
|
|
|
|
<%= form_tag(admins_shixuns_path, method: :get, class: 'form-inline search-form',id:"shixuns-search-form",remote:true) do %>
|
|
|
|
|
<div class="form-group mr-2">
|
|
|
|
|
<label for="status">状态:</label>
|
|
|
|
|
<% status_options = [['全部', ''], ["编辑中(#{@editing_shixuns})", "editing"], ["待审核(#{@pending_shixuns})", 'pending'], ["已发布(#{@processed_shixuns})", 'processed'],["已关闭(#{@closed_shixuns})",'closed']] %>
|
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
</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': '搜索中...') %>
|
|
|
|
|
<%= link_to "清除",admins_shixuns_path(status:nil,tag:nil,search_type:nil,keyword:nil),class: "btn btn-default" %>
|
|
|
|
|
<%= link_to "清除",admins_shixuns_path,class: "btn btn-default",id:"shixuns-clear-search",'data-disable-with': '清除中...' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<a href="javascript:void(0)" class="btn btn-primary" id="shixuns-export" data-disable-with = '导出中...'>导出</a>
|
|
|
|
|
</div>
|
|
|
|
|