Only add charter state change link when chartering, it doesn't make

sense for an approved charter. Fixes #861.
 - Legacy-Id: 5799
This commit is contained in:
Ole Laursen 2013-06-21 15:13:46 +00:00
parent 3c58e4743a
commit 57b0ca9cab

View file

@ -40,7 +40,7 @@
<td>
<div>
<a title="{{ doc.get_state.desc }}"
{% if not snapshot and user|has_role:"Area Director,Secretariat" %}
{% if not snapshot and chartering and user|has_role:"Area Director,Secretariat" %}
class="editlink" href="{% url charter_change_state name=doc.name %}"
{% endif %}>
{{ doc.get_state.name }}