Restore the discuss-box hiding feature when a position is not blocking. Fixes bug #1688. Commit ready for merge.
- Legacy-Id: 9626
This commit is contained in:
parent
8218a59e6f
commit
8887466231
|
@ -23,12 +23,14 @@
|
|||
{% csrf_token %}
|
||||
|
||||
{% for field in form %}
|
||||
{% if field.name == "discuss" %}<div id="div_id_discuss">{% endif %}
|
||||
{% bootstrap_field field %}
|
||||
{% if field.name == "discuss" and old_pos and old_pos.discuss_time %}
|
||||
<span class="help-block">Last edited {{ old_pos.discuss_time }}</span>
|
||||
{% elif field.name == "comment" and old_pos and old_pos.comment_time %}
|
||||
<span class="help-block">Last edited {{ old_pos.comment_time }}</span>
|
||||
{% endif %}
|
||||
{% if field.name == "discuss" %}</div>{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% buttons %}
|
||||
|
|
Loading…
Reference in a new issue