mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
transition button added to listitems of course tasks
This commit is contained in:
parent
85e8fe59a4
commit
43daab1f7b
@ -64,7 +64,7 @@ class TaskController extends AbstractController
|
|||||||
'id' => $task->getId(),
|
'id' => $task->getId(),
|
||||||
'list_params' => $request->query->get('list_params', [])
|
'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;
|
break;
|
||||||
default:
|
default:
|
||||||
return new Response("The type '$kind' is not implemented",
|
return new Response("The type '$kind' is not implemented",
|
||||||
|
@ -52,9 +52,8 @@
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ul
|
<ul class="record_actions">
|
||||||
class="record_actions">
|
{% if workflow_transitions(task)|length > 0 %}
|
||||||
{# {% if workflow_transitions(task)|length > 0 %}
|
|
||||||
<li>
|
<li>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-task-exchange dropdown-toggle" href="#" role="button" id="taskExchange" data-bs-toggle="dropdown" aria-expanded="false">
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endif %} #}
|
{% endif %}
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('chill_task_single_task_show', { 'id': task.id, 'list_params': app.request.query.all }) }}" class="btn btn-show "></a>
|
<a href="{{ path('chill_task_single_task_show', { 'id': task.id, 'list_params': app.request.query.all }) }}" class="btn btn-show "></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user