lib.itmens/journal/templates/action_delete_post.html
2024-06-20 16:03:33 -04:00

14 lines
551 B
HTML

{% load i18n %}
<span>
<a hx-post="{% url 'journal:post_delete' post.pk %}"
hx-swap="outerHTML"
hx-trigger="click once"
{% if post.piece %} hx-confirm="{% trans "are you sure to delete the mark or note related with this post?" %}" {% else %} hx-confirm="{% trans "are you sure to delete this post?" %}" {% endif %}
hx-target="#replies_{{ parent_post.pk }}">
{% if post.piece %}
<!--i class="fa-regular fa-trash-can"></i -->
{% else %}
<i class="fa-regular fa-square-minus"></i>
{% endif %}
</a>
</span>