<%= simple_form_for :search, { url: school_calendars_path, method: :get, html: { class: 'filterable_search_form' } } do |f| %>
<%= render 'resources' %>
<%= f.input :by_year, label: false, placeholder: t('.by_year') %> <% if show_all_unities? %> <%= f.input :by_unity_id, as: :select2, elements: @unities, label: false, placeholder: t('.by_unity_id') %> <% end %> <% if current_user.roles.any? { |role| role.administrator? } %> <%= link_to 'Eventos em lote', school_calendar_event_batches_path, class: "btn btn-info pull-right" %> <% end %>
<%= SchoolCalendar.human_attribute_name :year %> <%= SchoolCalendar.human_attribute_name :unity %> <%= SchoolCalendar.human_attribute_name :number_of_classes %>
<%= paginate @school_calendars %>
<% end %>