17 lines
904 B
HTML
17 lines
904 B
HTML
<div class="card mt-4">
|
|
<div class="card-header text-primary-theme">
|
|
<h5 class="card-title mb-0">{% trans "Delete Comment" %}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>{% trans "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">{% trans "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">{% trans "Cancel" %}</button>
|
|
{% endif %}
|
|
</form>
|
|
</div>
|
|
</div>
|