mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
redirect after submit bug fixed for edit and delete when coming from show.html.twig
This commit is contained in:
parent
548247188f
commit
1403ee2ba5
@ -30,10 +30,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt class="inline">{{ 'Scope'|trans }}</dt>
|
{% if task.scope is not null %}
|
||||||
<dd>
|
<dt class="inline">{{ 'Scope'|trans }}</dt>
|
||||||
<span class="scope">{{ task.scope.name|localize_translatable_string }}</span>
|
<dd>
|
||||||
</dd>
|
<span class="scope">{{ task.scope.name|localize_translatable_string }}</span>
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h3>{{"Dates"|trans}}</h3>
|
<h3>{{"Dates"|trans}}</h3>
|
||||||
{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
|
{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
|
||||||
@ -94,7 +96,7 @@
|
|||||||
|
|
||||||
{% if is_granted('CHILL_TASK_TASK_UPDATE', task) %}
|
{% if is_granted('CHILL_TASK_TASK_UPDATE', task) %}
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-update" href="{{ path('chill_task_single_task_edit', { 'id': task.id }) }}">
|
<a class="btn btn-update" href="{{ path('chill_task_single_task_edit', { 'id': task.id, 'list_params': app.request.query.all['list_params'] }) }}">
|
||||||
{{ 'Edit the task'|trans }}
|
{{ 'Edit the task'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -102,7 +104,7 @@
|
|||||||
|
|
||||||
{% if is_granted('CHILL_TASK_TASK_CREATE', task) %}
|
{% if is_granted('CHILL_TASK_TASK_CREATE', task) %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('chill_task_single_task_delete', { 'id': task.id } ) }}" class="btn btn-delete">
|
<a href="{{ path('chill_task_single_task_delete', { 'id': task.id, 'list_params': app.request.query.all['list_params'] } ) }}" class="btn btn-delete">
|
||||||
{{ 'Delete'|trans }}
|
{{ 'Delete'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user