ATS/templates/includes/delete_comment_form.html
2026-02-01 13:38:06 +03:00

19 lines
1.3 KiB
HTML

{% load i18n %}
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden mt-4">
<div class="bg-gray-50 px-4 py-3 border-b border-gray-200">
<h5 class="text-lg font-bold text-temple-red mb-0">{% trans "Delete Comment" %}</h5>
</div>
<div class="p-4">
<p class="text-gray-600 mb-2">{% trans "Are you sure you want to delete this comment by" %} <strong>{{ comment.author.get_full_name|default:comment.author.username }}</strong>?</p>
<p class="text-sm text-gray-500 mb-4"><small>{{ comment.created_at|date:"F d, Y P" }}</small></p>
<form method="post" action="{{ delete_url }}">
{% csrf_token %}
<button type="submit" class="inline-flex items-center gap-2 bg-red-500 hover:bg-red-600 text-white font-medium px-4 py-2 rounded-lg text-sm transition shadow-sm hover:shadow-md">
{% trans "Yes, Delete" %}
</button>
{% if 'HX-Request' in request.headers %}
<button type="button" class="inline-flex items-center gap-2 bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium px-4 py-2 rounded-lg text-sm transition" hx-get="{% url 'meeting_details' meeting.slug %}" hx-select="#comment-section" hx-target="#comment-section">{% trans "Cancel" %}</button>
{% endif %}
</form>
</div>
</div>