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:
Robert Sparks 2015-05-12 22:22:41 +00:00
parent 8218a59e6f
commit 8887466231

View file

@ -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 %}