Remove inlined JS

This commit is contained in:
Thomas Sileo 2022-08-29 20:11:31 +02:00
parent b843b29975
commit 2fb85e138e
6 changed files with 27 additions and 2 deletions

View file

@ -97,7 +97,7 @@
{% endmacro %}
{% macro admin_delete_button(ap_object_id) %}
<form action="{{ request.url_for("admin_actions_delete") }}" method="POST" onsubmit="return confirm('Do you really want to delete this object?');">
<form action="{{ request.url_for("admin_actions_delete") }}" class="object-delete-form" method="POST">
{{ embed_csrf_token() }}
{{ embed_redirect_url() }}
<input type="hidden" name="ap_object_id" value="{{ ap_object_id }}">