mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
35 lines
1.3 KiB
Twig
35 lines
1.3 KiB
Twig
{% extends "ChillPersonBundle::layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = 'chill_task_task_list' %}
|
|
{% set person = task.person %}
|
|
|
|
{% block title 'Remove task'|trans %}
|
|
|
|
{% block personcontent %}
|
|
|
|
<h2>{{ 'Apply transition on task <em>%title%</em>'|trans({ '%title%': task.title } )|raw }}</h2>
|
|
|
|
|
|
{% if task_workflow_metadata(task, 'transition.sentence_confirmation', transition) is not empty %}
|
|
<p class="message-confirm">{{ task_workflow_metadata(task, 'transition.sentence_confirmation', transition)|trans }}</p>
|
|
{% else %}
|
|
<p>{{ 'Are you sure to apply the transition %name% on this task ?'|trans({ '%name%': task_workflow_metadata(task, 'transition.name', transition)|default(transition.name)|trans }) }}</p>
|
|
{% endif %}
|
|
|
|
{{ form_start(form) }}
|
|
|
|
<ul class="record_actions">
|
|
<li class="cancel">
|
|
<a href="{{ path('chill_task_singletask_list', app.request.query.get('list_params', { }) ) }}" class="sc-button bt-cancel">
|
|
{{ 'Back to the list'|trans }}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
{{ form_widget(form.submit, { 'attr' : { 'class' : "sc-button bt-task-exchange green" }, 'label': task_workflow_metadata(task, 'transition.apply_transition_submit_label', transition)|default('apply')|trans } ) }}
|
|
</li>
|
|
</ul>
|
|
|
|
{{ form_end(form) }}
|
|
|
|
{% endblock %}
|