Commit 48b90784 authored by Julien Fastré's avatar Julien Fastré

do not show transition button if no transition available

parent 52bda7c9
......@@ -94,6 +94,7 @@
{{ 'Back to the list'|trans }}
</a>
</li>
{% if workflow_transitions(task)|length > 0 %}
<li>
<div class="bt-dropdown">
<a href="" class="sc-button bt-task-exchange">&nbsp;{{'Change task status'|trans}}</a>
......@@ -104,6 +105,7 @@
</div>
</div>
</li>
{% endif %}
{% if is_granted('CHILL_TASK_TASK_UPDATE', task) %}
<li>
<a class="sc-button bt-update" href="{{ path('chill_task_single_task_edit', { 'id': task.id }) }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment