%unless flash[:dynamic_scaffold_danger].nil? -%>
<%== flash[:dynamic_scaffold_danger] %>
<%end%>
<%= form_with method: :patch, url: dynamic_scaffold_path(:sort, request_queries(dynamic_scaffold.list.page_param_name)), local: true do%>
<%- if dynamic_scaffold.list.add_button -%>
<%= link_to dynamic_scaffold_path(:new, request_queries), class: class_names('btn btn-outline-primary btn-primary btn-sm spec-ds-add', 'disabled': dynamic_scaffold.max_count?(@count)) do%>
<%= dynamic_scaffold_icon(:add) %> <%= t('dynamic_scaffold.button.add') %>
<%- unless dynamic_scaffold.max_count.nil? -%>
<%= @count %> / <%= dynamic_scaffold.max_count%>
<% end %>
<%end%>
<%- end -%>
<%= render 'dynamic_scaffold/bootstrap/pagination' %>
<%= render 'dynamic_scaffold/bootstrap/save_order'%>
<% if @records.empty? %>
<%= t('dynamic_scaffold.message.no_records', model: dynamic_scaffold.title.name) %>
<% else %>
<% end %>
<%= render 'dynamic_scaffold/bootstrap/save_order'%>
<%= render 'dynamic_scaffold/bootstrap/pagination' %>
<% end %>