website/conservancy/usethesource/templates/usethesource/edit_comment_form.html

8 lines
472 B
HTML

<form class="mb3" hx-target="this" hx-swap="outerHTML" hx-post="{% url 'usethesource:edit_comment' comment_id=comment.id %}" method="post">
{% csrf_token %}
{{ form.message }}
<div class="mt2">
<button type="submit" hx-get="{% url 'usethesource:view_comment' comment_id=comment.id show_add='false' %}" class="b pointer white bg-light-silver pv2 ph3" style="border: none">Cancel</button>
{% include 'usethesource/save_button_partial.html' %}
</div>
</form>