Files
nairobi/app/components/admin/site_customization/pages/edit_component.html.erb
Javi Martín 251a5fb6e9 Default to delete method for the destroy action
This is consistent with what Rails does.
2024-04-17 23:38:41 +02:00

15 lines
343 B
Plaintext

<% provide :main_class, "admin-site-customization-pages-edit" %>
<%= back_link_to admin_site_customization_pages_path %>
<%= header do %>
<%= render Admin::ActionComponent.new(
:destroy,
@page,
text: t("admin.site_customization.pages.index.delete"),
confirm: true,
class: "delete"
) %>
<% end %>
<%= render "form" %>