mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
include AccompanyingPeriod in notification (shownInNotification)
This commit is contained in:
parent
98ab3b66ba
commit
a40077e91b
@ -1,12 +1,25 @@
|
|||||||
{# variables availables: notification, period. #}
|
{% macro recordAction(period) %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': period }) }}"
|
||||||
|
class="btn btn-show" title="{{ 'See accompanying period'|trans }}"></a>
|
||||||
|
</li>
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% if period is not null %}
|
{% if period is not null %}
|
||||||
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', period) %}
|
<div class="flex-table">
|
||||||
<a href="{{ path('chill_person_accompanying_course_index', {'accompanying_period_id': notification.relatedEntityId }) }}">
|
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', period) %}
|
||||||
Resume Accompanying Course (renderbox + links)
|
{% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with {
|
||||||
</a>
|
'recordAction': _self.recordAction(notification.relatedEntityId)
|
||||||
{% else %}
|
} %}
|
||||||
You are getting a notification for a period you are not allowed to see. This is the minimal details: {{ period.id }}
|
{% else %}
|
||||||
{% endif %}
|
<div class="alert alert-warning">
|
||||||
|
{{ 'This is the minimal details'|trans ~ ': ' ~ period.id }}<br>
|
||||||
|
{{ 'You are getting a notification for a period you are not allowed to see.'|trans }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>You are getting a notification for a period which does not exists any more</div>
|
<div class="alert alert-warning">
|
||||||
|
{{ 'You are getting a notification for a period which does not exists any more'|trans }}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -484,3 +484,7 @@ period_notification:
|
|||||||
Persons are: Les usagers concernés sont les suivants
|
Persons are: Les usagers concernés sont les suivants
|
||||||
Social issues are: Les problématiques sociales renseignées sont les suivantes
|
Social issues are: Les problématiques sociales renseignées sont les suivantes
|
||||||
See it online: Visualisez le parcours en ligne
|
See it online: Visualisez le parcours en ligne
|
||||||
|
|
||||||
|
You are getting a notification for a period which does not exists any more: Cette notification ne correspond pas à une période d'accompagnement valide
|
||||||
|
You are getting a notification for a period you are not allowed to see.: Vous n'avez pas accès à cette période d'accompagnement.
|
||||||
|
This is the minimal details: Dossier n°
|
||||||
|
Loading…
x
Reference in New Issue
Block a user