<form class="panel-body" method="post" action="">
{% csrf_token %}
{{ form.as_p }}
<input type="hidden" name="fcode" value="{{ object.id }}">
<button type="submit" class="btn panel-default">发表评论</button>
</form>
{% for v in form_list %}
{% if v.active %}
<li class="list-group-item" style="padding: 10px 10px 30px 10px;">
<p>
<span style="color:#333; font-weight: bold;">评论内容:</span> {{ v.table_body }}</p>
{% if v.reply %}
<p style="padding-left: 30px;">
<span style="color:#333; font-weight: bold;">回复内容:</span>
{{ v.reply }}
---- <span class="badge" style="background-color: #F0AD4E;">回复时间: {{ v.update_time }}</span>
</p>{% endif %}
<span class="badge"
style="background-color: #F0AD4E;">评论时间: {{ v.create_time }}</span>
<span class="badge" style="background-color: #5BC0DE;">评论人: {{ v.table_name }}</span>
</li>
{% endif %}
{% endfor %}