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,26 +52,25 @@
|
|||||||
|
|
||||||
</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">
|
{{'Change task status'|trans}}
|
||||||
{{'Change task status'|trans}}
|
</a>
|
||||||
</a>
|
<ul class="dropdown-menu" aria-labelledby="taskExchange">
|
||||||
<ul class="dropdown-menu" aria-labelledby="taskExchange">
|
{% for transition in workflow_transitions(task) %}
|
||||||
{% for transition in workflow_transitions(task) %}
|
<li>
|
||||||
<li>
|
<a class="dropdown-item" href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'list_params': app.request.query.all }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">
|
||||||
<a class="dropdown-item" href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'list_params': app.request.query.all }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">
|
{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}
|
||||||
{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</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