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

9 lines
546 B
HTML

<form class="mb3" hx-target="this" hx-swap="outerHTML" hx-post="{% url 'usethesource:edit_comment' comment_id=comment.id %}">
{% csrf_token %}
<div>{{ form.time }}</div>
<div class="mt2">{{ form.message }}</div>
<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>
<button type="submit" class="b white bg-green pv2 ph3" style="border: none">Save</button>
</div>
</form>