<% content_for :js do %> <%= javascript_include_tag 'views/discipline_content_records/index' %> <% end %>
<%= simple_form_for :filter, { url: discipline_content_records_path, method: :get, html: { class: 'filterable_search_form' } } do |f| %>
<% if @allow_class_number %> <% end %> <% if @allow_class_number %> <% end %> <%= render 'resources' %>
<%= f.input :by_classroom_id, as: :select2, elements: @classrooms, label: false, placeholder: t('.by_classroom_description') %> <%= f.input :by_discipline_id, as: :select2, elements: @disciplines, label: false, placeholder: t('.by_discipline_description') %> <%= f.input :by_date, as: :date, label: false, placeholder: t('.by_date') %> <%= f.input :by_author, as: :select2_plans, label: false %> <%= link_to t('.new_html'), new_discipline_content_record_path, class: 'btn btn-primary pull-right', style: 'width: 165px;' %>
<%= ContentRecord.human_attribute_name :classroom %> <%= DisciplineContentRecord.human_attribute_name :discipline %> <%= ContentRecord.human_attribute_name :record_date %> <%= DisciplineContentRecord.human_attribute_name :author %> <%= DisciplineContentRecord.human_attribute_name :class_number %>
<%= render 'shared/pagination', records: @discipline_content_records %>
<% end %>
<%= render 'copy_discipline_content_record_modal' %>