From c2587540697335c2f8c55c80974188c8dfb1c2ef Mon Sep 17 00:00:00 2001 From: david Date: Sun, 17 Nov 2024 00:45:41 +0100 Subject: [PATCH] Ask before deleting report --- app/views/reports/show.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/reports/show.html.slim b/app/views/reports/show.html.slim index 13f31c0..405b87c 100644 --- a/app/views/reports/show.html.slim +++ b/app/views/reports/show.html.slim @@ -61,4 +61,4 @@ h1 .action-row = link_to t("scaffold.link_edit", model: @report.model_name.human), edit_report_path(@report) = link_to t("scaffold.link_index", model: @report.model_name.human(count: 2)), reports_path - = button_to t("scaffold.link_destroy", model: @report.model_name.human), @report, method: :delete, class: "btn btn-outline-danger" + = button_to t("scaffold.link_destroy", model: @report.model_name.human), @report, method: :delete, class: "btn btn-outline-danger", data: { turbo_confirm: "Bist du sicher?"}