kaauh_ats/templates/includes/delete_comment_form.html

17 lines
848 B
HTML

<div class="card mt-4">
<div class="card-header text-primary-theme">
<h5 class="card-title mb-0">Delete Comment</h5>
</div>
<div class="card-body">
<p>Are you sure you want to delete this comment by <strong>{{ comment.author.get_full_name|default:comment.author.username }}</strong>?</p>
<p><small>{{ comment.created_at|date:"F d, Y P" }}</small></p>
<form method="post" action="{{ delete_url }}">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Yes, Delete</button>
{% if 'HX-Request' in request.headers %}
<button type="button" class="btn btn-secondary" hx-get="{% url 'meeting_details' meeting.slug %}" hx-select="#comment-section" hx-target="#comment-section">Cancel</button>
{% endif %}
</form>
</div>
</div>