add notification service for AccompanyingPeriodWork in show

This commit is contained in:
Lucas Silva
2023-03-21 14:34:38 +01:00
parent 4a30f310b8
commit ecb8ef0146
6 changed files with 109 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
{% macro recordAction(work) %}
<li>
<a href={{ path('chill_person_accompanying_period_work_list', { 'id': accompanyingCourse.id }) }}""
class="btn btn-show" title="{{ 'See accompanying period'|trans }}"></a>
</li>
{% endmacro %}
{% if work is not null %}
<div class="flex-table">
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', work) %}
{% else %}
{% endif %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
'itemBlocClass': 'bg-chill-llight-gray',
'displayAction': true,
'displayContent': 'short',
'displayFontSmall': true,
'w': work
} %}
<div class="alert alert-warning border-warning border-1">
{{ 'This is the minimal period details'|trans ~ ': ' ~ work.id }}<br>
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
</div>
</div>
{% else %}
<div class="alert alert-warning border-warning border-1">
{{ 'You are getting a notification for a period which does not exists any more'|trans }}
</div>
{% endif %}