NDOJ/templates/comments/edit-ajax.html
2022-07-15 13:00:34 +07:00

14 lines
618 B
HTML

<div class="comment-submit">
<form id="comment-edit" action="{{ request.get_full_path() }}" method="post">
<span style="display: none" class="comment-id">{{ comment.id }}</span>
<span style="display: none" class="read-back">{{ url('comment_content', comment.id) }}</span>
{% csrf_token %}
{{ form.non_field_errors() }}
{{ form.body.errors }}
<div class="comment-post-wrapper">
<div id="comment-form-body">{{ form.body }}</div>
</div>
<hr>
<input style="float: right" type="submit" value="Post!" class="button">
</form>
</div>