Update theme deletion to work with Turbo
This commit is contained in:
parent
674fc04a8b
commit
4b4deecf9c
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
- if current_user.theme
|
- if current_user.theme
|
||||||
.pull-right
|
.pull-right
|
||||||
= button_to t(".delete"), settings_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger"
|
|
||||||
= bootstrap_form_for(current_user.theme || Theme.new, html: { id: "update" }, method: :patch) do |f|
|
= bootstrap_form_for(current_user.theme || Theme.new, html: { id: "update" }, method: :patch) do |f|
|
||||||
|
= link_to t(".delete"), settings_theme_path, data: { turbo_confirm: t("voc.confirm"), turbo_method: :delete }, tabindex: -1, class: "btn btn-danger"
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2= t(".general.heading")
|
%h2= t(".general.heading")
|
||||||
|
|
Loading…
Reference in New Issue