mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
do not show transition button if no transition available
This commit is contained in:
parent
52bda7c94f
commit
48b9078497
@ -94,6 +94,7 @@
|
|||||||
{{ 'Back to the list'|trans }}
|
{{ 'Back to the list'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if workflow_transitions(task)|length > 0 %}
|
||||||
<li>
|
<li>
|
||||||
<div class="bt-dropdown">
|
<div class="bt-dropdown">
|
||||||
<a href="" class="sc-button bt-task-exchange"> {{'Change task status'|trans}}</a>
|
<a href="" class="sc-button bt-task-exchange"> {{'Change task status'|trans}}</a>
|
||||||
@ -104,6 +105,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% if is_granted('CHILL_TASK_TASK_UPDATE', task) %}
|
{% if is_granted('CHILL_TASK_TASK_UPDATE', task) %}
|
||||||
<li>
|
<li>
|
||||||
<a class="sc-button bt-update" href="{{ path('chill_task_single_task_edit', { 'id': task.id }) }}">
|
<a class="sc-button bt-update" href="{{ path('chill_task_single_task_edit', { 'id': task.id }) }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user