<% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <% end %> <% content_for :page_specific_css do %> <% end %> <% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @chapters.each do |chapter| %> <% end %>
<%= chapter.title %> <% if can_edit_or_delete?(@banner) %> <% end %> <%= chapter.author %> <%= chapter.page %> <%= chapter.sort_number %>
<% if can_edit_or_delete?(@publication) %>
<%= link_to t("publications.add_chapter"), new_admin_chapter_path(page: params[:page], publication_id: @publication.id), class: "btn btn-primary" %> <%= t('publications.order')%>
<%= content_tag :div, paginate(@chapters), class: "pagination pagination-centered" %>
<% end %>