From 9bd9c7af9fc732bcf18200bfaf5d005bcfce2be2 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 20 Nov 2022 18:59:34 +0100 Subject: [PATCH] Disable Turbo on announcement forms --- app/views/admin/announcement/edit.html.haml | 2 +- app/views/admin/announcement/new.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/announcement/edit.html.haml b/app/views/admin/announcement/edit.html.haml index 178b844c..6d95600a 100644 --- a/app/views/admin/announcement/edit.html.haml +++ b/app/views/admin/announcement/edit.html.haml @@ -1,6 +1,6 @@ .card .card-body - = bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH") do |f| + = bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH", data: { turbo: false }) do |f| .row .col-md-12 = f.text_area :content diff --git a/app/views/admin/announcement/new.html.haml b/app/views/admin/announcement/new.html.haml index 6ddc4012..eb9ea988 100644 --- a/app/views/admin/announcement/new.html.haml +++ b/app/views/admin/announcement/new.html.haml @@ -1,6 +1,6 @@ .card .card-body - = bootstrap_form_for(@announcement, url: { action: "create" }) do |f| + = bootstrap_form_for(@announcement, url: { action: "create" }, data: { turbo: false }) do |f| .row .col-md-12 = f.text_area :content