<div class='widget-body no-padding'>
  <%= simple_form_for :filter, { url: transfer_notes_path, method: :get, html: { class: 'filterable_search_form' } } do |f| %>
    <div class='table-responsive'>
      <table class='table table-bordered table-only-inner-bordered table-striped table-condensed table-hover' id='resources'>
        <thead>
          <tr>
            <th scope="col"><%= f.input :by_classroom_description, label: false, placeholder: t('.by_classroom_description') %></th>
            <th scope="col"><%= f.input :by_discipline_description, label: false, placeholder: t('.by_discipline_description') %></th>
            <th scope="col"><%= f.input :by_student_name, label: false, placeholder: t('.by_student_name') %></th>
            <th scope="col">
              <%= f.input :by_step, as: :select2_step, classroom: current_user_classroom,
                label: false, placeholder: t('.by_step') %>
            </th>
            <th scope="col"><%= f.input :by_transfer_date, as: :date, label: false, placeholder: t('.by_transfer_date') %></th>
            <th scope="col"><%= link_to t('.new_html'), new_transfer_note_path, class: 'btn btn-primary pull-right' %></th>
          </tr>
          <tr>
            <th scope="col"><%= TransferNote.human_attribute_name :classroom %></th>
            <th scope="col"><%= TransferNote.human_attribute_name :discipline %></th>
            <th scope="col"><%= TransferNote.human_attribute_name :student %></th>
            <th scope="col"><%= TransferNote.human_attribute_name :step %></th>
            <th scope="col"><%= TransferNote.human_attribute_name :transfer_date %></th>
            <th scope="col" width='190px'></th>
          </tr>
        </thead>

        <%= render 'resources' %>

        <tfoot id='paginator' class='remote'>
          <td colspan='6'>
            <div id='page_entries_info' class='pull-left hidden-xs'>
              <%= page_entries_info @transfer_notes %>
            </div>

            <div class='pull-right'>
              <%= paginate @transfer_notes %>
            </div>
          </td>
        </tfoot>
      </table>
    </div>
  <% end %>
</div>
