diff --git a/templates/task/show.html.twig b/templates/task/show.html.twig index 757cb69..dcacda7 100644 --- a/templates/task/show.html.twig +++ b/templates/task/show.html.twig @@ -23,92 +23,92 @@ Projet - {% if is_granted('IS_AUTHENTICATED_FULLY') %} + {% if is_granted('IS_AUTHENTICATED_FULLY') %} {% if app.user is same as(task.createdBy) %} -
- - - - - Modifier - - - - - - - Supprimer - -
+
+ + + + + Modifier + + + + + + + Supprimer + +
{% endif %} -
- {% for transition in workflow_transitions(task) %} - {% if not workflow_metadata(task, 'locking', task.status) or app.user is same as(task.lockedBy) %} - - {% if transition.name == 'start' %} - - - - {% elseif transition.name == 'finish' %} - - - - {% elseif transition.name == 'cancel' %} - - - - {% elseif transition.name == 'reset' %} - - - +
+ {% for transition in workflow_transitions(task) %} + {% if not workflow_metadata(task, 'locking', task.status) or app.user is same as(task.lockedBy) %} + + {% if transition.name == 'start' %} + + + + {% elseif transition.name == 'finish' %} + + + + {% elseif transition.name == 'cancel' %} + + + + {% elseif transition.name == 'reset' %} + + + + {% endif %} + {{ workflow_metadata(task, 'short', transition) }} + {% endif %} - {{ workflow_metadata(task, 'short', transition) }} - - {% endif %} - {% endfor %} -
-
+ {% endfor %} +
{% if workflow_metadata(task, 'locking', task.status) and app.user is same as(task.lockedBy) %} -
- + +
+ -
- {% endif %} {% endif %} - -
{% if randomTask %} - - - - - - Piocher - +
+ + + + + + Piocher + +
{% endif %} -