<% define_admin_breadcrumbs do %>
  <% add_admin_breadcrumb('实训修改记录') %>
<% end %>

<div class="box search-form-container shixun-modify-record-list-form">
  <%= form_tag(admins_shixun_modify_records_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
    <div class="form-group col-12 col-md-4">
      <label for="user_name">用户名：</label>
      <%= text_field_tag :user_name, params[:user_name], class: 'form-control flex-1', placeholder: '真实姓名搜索' %>
    </div>

    <div class="form-group col-12 col-md-auto">
      <label for="status">时间范围：</label>
      <% data_arrs = [['最近一周', 'weekly'], ['最近一个月', 'monthly']] %>
      <%= select_tag(:date, options_for_select(data_arrs, params[:date]), class: 'form-control') %>
    </div>

    <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
    <input type="reset" class="btn btn-secondary clear-btn" value="清空"/>
  <% end %>
</div>

<div class="box admin-list-container shixun-modify-record-list-container">
  <%= render partial: 'admins/shixun_modify_records/shared/list', locals: { records: @records } %>
</div>