lib/generators/admin/scaffold/templates/erb/index.html.erb.tt in administration-zero-1.0.1 vs lib/generators/admin/scaffold/templates/erb/index.html.erb.tt in administration-zero-1.0.2
- old
+ new
@@ -37,23 +37,23 @@
<% end -%>
<% end -%>
<td>
<%%= link_to "View", <%= model_resource_name %>, class: "btn btn-white btn-sm" %>
<%%= link_to "Edit", <%= edit_helper(singular_table_name, type: :path) %>, class: "btn btn-white btn-sm" %>
- <%%= button_to "Delete", <%= model_resource_name %>, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-white btn-sm" %>
+ <%%= link_to "Delete", <%= model_resource_name %>, class: "btn btn-white btn-sm", data: { method: :delete, confirm: "Are you sure?" } %>
</td>
</tr>
<%% end %>
</tbody>
</table>
</div>
<div class="card-footer d-flex align-items-center fs-5">
<div class="d-none d-md-block">
<div>Download: <%%= link_to "CSV", url_for(format: :csv, q: request.params[:q]) %></div>
- <%%= raw pagy_info(@pagy) %>
+ <%%== pagy_info(@pagy) %>
</div>
<div class="ms-auto">
- <%%= render "pagination", pagy: @pagy %>
+ <%%== pagy_bootstrap_nav(@pagy) %>
</div>
</div>
</div>
</div>
</div>