mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
switching to new syntax
This commit is contained in:
parent
afb25276ee
commit
d8d517017d
@ -27,7 +27,7 @@ final class AccompanyingPeriodNotificationHandler implements NotificationHandler
|
||||
|
||||
public function getTemplate(Notification $notification, array $options = []): string
|
||||
{
|
||||
return 'ChillPersonBundle:AccompanyingPeriod:showInNotification.html.twig';
|
||||
return '@ChillPerson/AccompanyingPeriod/showInNotification.html.twig';
|
||||
}
|
||||
|
||||
public function getTemplateData(Notification $notification, array $options = []): array
|
||||
|
@ -28,7 +28,7 @@ final class AccompanyingPeriodWorkEvaluationDocumentNotificationHandler implemen
|
||||
|
||||
public function getTemplate(Notification $notification, array $options = []): string
|
||||
{
|
||||
return 'ChillPersonBundle:AccompanyingCourseWork:showEvaluationDocumentInNotification.html.twig';
|
||||
return '@ChillPerson/AccompanyingCourseWork/showEvaluationDocumentInNotification.html.twig';
|
||||
}
|
||||
|
||||
public function getTemplateData(Notification $notification, array $options = []): array
|
||||
|
@ -28,7 +28,7 @@ final class AccompanyingPeriodWorkNotificationHandler implements NotificationHan
|
||||
|
||||
public function getTemplate(Notification $notification, array $options = []): string
|
||||
{
|
||||
return 'ChillPersonBundle:AccompanyingCourseWork:showInNotification.html.twig';
|
||||
return '@ChillPerson/AccompanyingCourseWork/showInNotification.html.twig';
|
||||
}
|
||||
|
||||
public function getTemplateData(Notification $notification, array $options = []): array
|
||||
|
@ -5,13 +5,18 @@
|
||||
</li>
|
||||
{% endmacro %}
|
||||
{% if document is not null %}
|
||||
|
||||
<div class="flex-table">
|
||||
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_EVALUATION_DOCUMENT_SHOW', document) %}
|
||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
|
||||
'w': document.accompanyingPeriodWorkEvaluation.accompanyingPeriodWork,
|
||||
'd': document.storedObject,
|
||||
'displayContent': 'long',
|
||||
} %}
|
||||
<div class="item-bloc">
|
||||
{% include '@ChillPerson/AccompanyingCourseWork/_objectifs_results_evaluations.html.twig' with {
|
||||
'w': document.accompanyingPeriodWorkEvaluation.accompanyingPeriodWork,
|
||||
'd': document.storedObject,
|
||||
'displayContent': 'short',
|
||||
'recordAction': _self.recordAction(document)
|
||||
} %}
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
<div class="alert alert-warning border-warning border-1">
|
||||
{{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}<br>
|
||||
|
@ -7,7 +7,7 @@
|
||||
{% if work is not null %}
|
||||
<div class="flex-table">
|
||||
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_SEE', work) %}
|
||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
|
||||
{% include "@ChillPerson/AccompanyingCourseWork/_item.html.twig" with {
|
||||
'itemBlocClass': 'bg-chill-llight-gray',
|
||||
'displayAction': true,
|
||||
'displayContent': 'short',
|
||||
|
@ -6,10 +6,9 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% if period is not null %}
|
||||
{{ dump(period) }}
|
||||
<div class="flex-table">
|
||||
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', period) %}
|
||||
{% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with {
|
||||
{% include "@ChillPerson/AccompanyingPeriod/_list_item.html.twig" with {
|
||||
'recordAction': _self.recordAction(notification.relatedEntityId),
|
||||
'itemBlocClass': 'bg-chill-llight-gray'
|
||||
} %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user