transition button added to listitems of course tasks

This commit is contained in:
Julie Lenaerts 2021-10-01 11:32:05 +02:00
parent 85e8fe59a4
commit 43daab1f7b
2 changed files with 20 additions and 21 deletions

View File

@ -64,7 +64,7 @@ class TaskController extends AbstractController
'id' => $task->getId(),
'list_params' => $request->query->get('list_params', [])
]);
$task->getCourse() === null ? $defaultTemplate = '@ChillTask/SingleTask/transition.html.twig' : $defaultTemplate = '@ChillTask/SingleTask/transitionCourseTask.html.twig';
$task->getCourse() === null ? $defaultTemplate = '@ChillTask/SingleTask/Person/transition.html.twig' : $defaultTemplate = '@ChillTask/SingleTask/AccompanyingCourse/transition.html.twig';
break;
default:
return new Response("The type '$kind' is not implemented",

View File

@ -52,9 +52,8 @@
</td>
<td>
<ul
class="record_actions">
{# {% if workflow_transitions(task)|length > 0 %}
<ul class="record_actions">
{% if workflow_transitions(task)|length > 0 %}
<li>
<div class="btn-group">
<a class="btn btn-task-exchange dropdown-toggle" href="#" role="button" id="taskExchange" data-bs-toggle="dropdown" aria-expanded="false">
@ -71,7 +70,7 @@
</ul>
</div>
</li>
{% endif %} #}
{% endif %}
<li>
<a href="{{ path('chill_task_single_task_show', { 'id': task.id, 'list_params': app.request.query.all }) }}" class="btn btn-show "></a>