Files
nairobi/app/components/admin/site_customization/pages/edit_component.html.erb
Javi Martín df17bd1354 Ask confirmation to delete pages from the edit page
We were already doing that when deleting pages from the index page, and
we also ask for confirmation in almost every page in the admin section.
2024-04-17 17:31:34 +02:00

16 lines
364 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"),
method: :delete,
confirm: true,
class: "delete"
) %>
<% end %>
<%= render "form" %>