add show, edit, delete actions for tasks + template twig

This commit is contained in:
nobohan
2018-04-24 17:53:12 +02:00
parent 3d775a3ee2
commit e1871a2d15
5 changed files with 473 additions and 96 deletions

View File

@@ -0,0 +1,19 @@
{% extends "ChillPersonBundle::layout.html.twig" %}
{% set activeRouteKey = 'chill_task_task_list' %}
{% set person = task.person %}
{% block title 'Remove task'|trans %}
{% block personcontent %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{
'title' : 'Remove task'|trans,
'confirm_question' : 'Are you sure you want to remove the task about "%name%" ?'|trans({ '%name%' : person.firstname ~ ' ' ~ person.lastname } ),
'cancel_route' : 'chill_task_task_list',
'cancel_parameters' : { 'personId' : task.person.id, 'id' : task.id },
'form' : delete_form
} ) }}
{% endblock %}