更新 'src/DjangoBlog-master/templates/comments/tags/post_comment.html'

fz_branch
pa2g3nmk9 6 months ago
parent cdecc8f3cd
commit 2a25c7d2f7

@ -1,33 +1,47 @@
<div id="comments" class="comments-area">
{# 评论表单响应区域 #}
<div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">发表评论
<small><a rel="nofollow" id="cancel-comment-reply-link" href="/wordpress/?p=3786#respond"
style="display:none;">取消回复</a></small>
{# 评论标题 #}
<h3 id="reply-title" class="comment-reply-title">
发表评论
<small>
<a rel="nofollow" id="cancel-comment-reply-link" href="/wordpress/?p=3786#respond"
style="display:none;">取消回复</a>
</small>
</h3>
{# 评论表单 #}
<form action="{% url 'comments:postcomment' article.pk %}" method="post" id="commentform"
class="comment-form">{% csrf_token %}
class="comment-form">
{% csrf_token %} {# CSRF保护令牌 #}
{# 评论内容输入框 #}
<p class="comment-form-comment">
{{ form.body.label_tag }}
{{ form.body }}
{{ form.body.errors }}
{{ form.body.label_tag }} {# 显示评论内容标签 #}
{{ form.body }} {# 评论内容文本域 #}
{{ form.body.errors }} {# 显示评论内容错误信息 #}
</p>
{# 隐藏的父评论ID字段用于回复功能 #}
{{ form.parent_comment_id }}
{# 表单提交区域 #}
<div class="form-submit">
{% if COMMENT_NEED_REVIEW %}
{# Markdown支持提示 #}
{% if COMMENT_NEED_REVIEW %} {# 如果需要评论审核 #}
<span class="comment-markdown"> 支持markdown评论经审核后才会显示。</span>
{% else %}
{% else %} {# 如果不需要审核 #}
<span class="comment-markdown"> 支持markdown。</span>
{% endif %}
{# 提交按钮 #}
<input name="submit" type="submit" id="submit" class="submit" value="发表评论"/>
{# 取消回复按钮(默认隐藏) #}
<small class="cancel-comment" id="cancel_comment" style="display: none">
<a href="javascript:void(0)" id="cancel-comment-reply-link" onclick="cancel_reply()">取消回复</a>
</small>
</div>
</form>
</div><!-- #respond -->
</div><!-- #comments .comments-area -->
</div><!-- #comments .comments-area -->
Loading…
Cancel
Save