<% define_admin_breadcrumbs do %>
  <% add_admin_breadcrumb('用户站点列表', admins_site_pages_path) %>
<% end %>

<div class="box search-form-container user-list-form">
  <%= form_tag(admins_site_pages_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
    <div class="form-group mr-2">
      <label for="state">状态：</label>
      <% state_options = [['全部',nil], ['正常', true], ['已关闭', false]] %>
      <%= select_tag(:state, options_for_select(state_options), class: 'form-control') %>
    </div>
    <%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: '输入用户 ID/姓名/邮箱/手机号 检索') %>
    <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
  <% end %>

</div>

<div class="box admin-list-container identity-site-pages-list-container">
  <%= render partial: 'admins/site_pages/shared/info_list', locals: { site_pages: @site_pages } %>
</div>

