forked from bton/matekasse
16 lines
436 B
HTML
16 lines
436 B
HTML
{% extends "base.html" %}
|
|
{% block customscript %}
|
|
<script type="text/javascript" charset="utf-8">
|
|
if (confirm("{message}") == true) {
|
|
fetch("{{destination}}", {
|
|
method: "POST",
|
|
body: JSON.stringify({data}),
|
|
headers: {
|
|
"Content-type": "application/json; charset=UTF-8"
|
|
}
|
|
})
|
|
} else {
|
|
window.location = "/list"
|
|
}
|
|
</script>
|
|
{% endblock %}
|