diff --git a/hypha/apply/activity/templates/activity/partials/comment_form.html b/hypha/apply/activity/templates/activity/partials/comment_form.html index 8b6a669055..c491020e44 100644 --- a/hypha/apply/activity/templates/activity/partials/comment_form.html +++ b/hypha/apply/activity/templates/activity/partials/comment_form.html @@ -7,8 +7,10 @@ {% load i18n static heroicons %} -
-

Comment

+{# Success is the 204 returned by `post_comment`, which htmx does not swap - a #} +{# 200 means the form came back with validation errors, so keep what was typed. #} + +

{% trans "Comment" %}

{% csrf_token %} {% for hidden in form.hidden_fields %} @@ -25,7 +27,6 @@

Comment

{% include "forms/includes/field.html" with field=form.visibility %} {% include "forms/includes/field.html" with field=form.assign_to %} {% include "forms/includes/field.html" with field=form.attachments %} - {{ form.related_content_type }}