Ask before deleting report

This commit is contained in:
david 2024-11-17 00:45:41 +01:00
parent 3e2cef9907
commit c258754069

View file

@ -61,4 +61,4 @@ h1
.action-row .action-row
= link_to t("scaffold.link_edit", model: @report.model_name.human), edit_report_path(@report) = 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 = 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?"}