fix delete of reports in crud config + template

This commit is contained in:
Julie Lenaerts 2024-04-29 15:25:15 +02:00
parent 20c27c100c
commit 02b150b0a5
2 changed files with 14 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
], ],
'delete' => [ 'delete' => [
'role' => 'ROLE_USER', 'role' => 'ROLE_USER',
'template' => '@ChillJob/CV/delete.html.twig', 'template' => '@ChillJob/Report/delete.html.twig',
] ]
], ],
], ],
@ -120,6 +120,10 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
'role' => 'ROLE_USER', 'role' => 'ROLE_USER',
'template' => '@ChillJob/ProjetProfessionnel/edit.html.twig', 'template' => '@ChillJob/ProjetProfessionnel/edit.html.twig',
], ],
'delete' => [
'role' => 'ROLE_USER',
'template' => '@ChillJob/Report/delete.html.twig'
]
], ],
], ],
[ [
@ -142,6 +146,10 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
'role' => 'ROLE_USER', 'role' => 'ROLE_USER',
'template' => '@ChillJob/Frein/edit.html.twig', 'template' => '@ChillJob/Frein/edit.html.twig',
], ],
'delete' => [
'role' => 'ROLE_USER',
'template' => '@ChillJob/Report/delete.html.twig',
]
], ],
], ],
[ [
@ -168,6 +176,10 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
'role' => 'ROLE_USER', 'role' => 'ROLE_USER',
'template' => '@ChillJob/Immersion/edit.html.twig', 'template' => '@ChillJob/Immersion/edit.html.twig',
], ],
'delete' => [
'role' => 'ROLE_USER',
'template' => '@ChillJob/Report/delete.html.twig',
]
], ],
], ],
], ],

View File

@ -1,4 +1,4 @@
{% extends '@ChillPerson/layout.html.twig' %} {% extends '@ChillMain/layout.html.twig' %}
{% set person = entity.person %} {% set person = entity.person %}
{% set activeRouteKey = '' %} {% set activeRouteKey = '' %}