Replace non-GET links with buttons

This commit is contained in:
2023-05-14 15:11:17 +02:00
parent 459836ca38
commit fbb74bd1f8
5 changed files with 79 additions and 59 deletions

View File

@@ -4,9 +4,9 @@
request.referer.present? ? :back : root_url %>
</div>
<div class="right">
<%= image_link_to t(".delete"), "account-remove-outline", user_registration_path,
class: "dangerous",
data: { turbo: true, turbo_method: :delete, turbo_confirm: t(".confirm_delete") } %>
<%# TODO: make confirm dialog work %>
<%= image_button_to t(".delete"), "account-remove-outline", user_registration_path,
class: "dangerous", method: :delete, data: {confirm: t(".confirm_delete")} %>
</div>
<% end %>