integreat_cms/cms/templates/generic_confirmation_dialog.html
{% load i18n %}
<!-- generic confirmation popup -->
<!-- when button with necessary confirmation is triggered,
html tags for title, text and subject are populated at runtime,
their values will be set according to the buttons data- attributes
-->
<div id="confirmation-dialog"
class="flex flex-col justify-center max-w-sm fixed inset-0 hidden">
<div class="content w-full rounded shadow-2xl bg-white">
<div class="flex items-center font-bold rounded p-4 bg-water-500">
<i icon-name="alert-triangle" class="text-red-500"></i>
<span class="uppercase pl-2">{% translate "Warning" %}</span>
</div>
<div class="w-full p-4 rounded shadow">
<h2 id="confirmation-title">
</h2>
<h3 id="confirmation-subject" class="text-center mt-4 mb-6 break-words">
</h3>
<p id="confirmation-text" class="mt-4 mb-6 whitespace-pre-line">
</p>
<form method="post" action="#">
{% csrf_token %}
<div class="flex justify-end gap-2">
<button id="close-confirmation-popup" class="btn btn-outline">
{% translate "Cancel" %}
</button>
<button class="btn">
{% translate "Confirm" %}
</button>
</div>
</form>
</div>
</div>
</div>