mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
rajout du voter, pour document et action dans la notif -> affiche les documents mais aussi le fais de partager dans notification create
This commit is contained in:
parent
f4a7145627
commit
e850f67b00
@ -131,7 +131,7 @@
|
|||||||
<ul class="item-col record_actions">
|
<ul class="item-col record_actions">
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-notify" title="{{ 'notification.Notify'|trans }}"
|
<a class="btn btn-notify btn-outline-primary" title="{{ 'notification.Notify'|trans }}"
|
||||||
href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': w.id}) }}">
|
href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': w.id}) }}">
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
@ -133,13 +133,12 @@
|
|||||||
|
|
||||||
<table class="table mt-4 mx-auto">
|
<table class="table mt-4 mx-auto">
|
||||||
{% for d in e.documents %}
|
{% for d in e.documents %}
|
||||||
{{ dump(d) }}
|
|
||||||
<tr class="border-0">
|
<tr class="border-0">
|
||||||
<td class="border-0">{{ d.title }}</td>
|
<td class="border-0">{{ d.title }}</td>
|
||||||
<td class="border-0">{{ mm.mimeIcon(d.storedObject.type) }}</td>
|
<td class="border-0">{{ mm.mimeIcon(d.storedObject.type) }}</td>
|
||||||
<td class="border-0">
|
<td class="border-0">
|
||||||
<a class="btn btn-notify btn-sm btn-outline-primary" title="{{ 'notification.Notify'|trans }} " href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'entityId': d.id}) }}"></a>
|
<a class="btn btn-notify btn-sm btn-outline-primary" title="{{ 'notification.Notify'|trans }} " href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'entityId': d.id}) }}"></a>
|
||||||
</td>
|
</td>
|
||||||
<td class="border-0 text-end">{{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }}</td>
|
<td class="border-0 text-end">{{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -46,11 +46,11 @@
|
|||||||
<a class="dropdown-item" title="{{ 'notification.Notify referrer'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id, 'tos': [accompanyingCourse.user.id]}) }}"></a>
|
<a class="dropdown-item" title="{{ 'notification.Notify referrer'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id, 'tos': [accompanyingCourse.user.id]}) }}"></a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item" title="{{ 'notification.Notify any'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id}) }}"></a>
|
<a class="dropdown-item btn-outline-primary" title="{{ 'notification.Notify any'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id}) }}"></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="btn btn-notify" title="{{ 'notification.Notify'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id}) }}">
|
<a class="btn btn-notify btn-outline-primary" title="{{ 'notification.Notify'|trans }}" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'entityId': work.id}) }}">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% if document is not null %}
|
{% if document is not null %}
|
||||||
<div class="flex-table">
|
<div class="flex-table">
|
||||||
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', document) %}
|
{% 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',
|
||||||
|
} %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<div class="alert alert-warning border-warning border-1">
|
||||||
|
{{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}<br>
|
||||||
|
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ dump(document) }}
|
|
||||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
|
|
||||||
|
|
||||||
'w': document.accompanyingPeriodWorkEvaluation.accompanyingPeriodWork
|
|
||||||
} %}
|
|
||||||
<div class="alert alert-warning border-warning border-1">
|
|
||||||
{{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}<br>
|
|
||||||
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-warning border-warning border-1">
|
<div class="alert alert-warning border-warning border-1">
|
||||||
|
@ -6,9 +6,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% if work is not null %}
|
{% if work is not null %}
|
||||||
<div class="flex-table">
|
<div class="flex-table">
|
||||||
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', work) %}
|
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_SEE', work) %}
|
||||||
{% else %}
|
|
||||||
{% endif %}
|
|
||||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
|
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
|
||||||
'itemBlocClass': 'bg-chill-llight-gray',
|
'itemBlocClass': 'bg-chill-llight-gray',
|
||||||
'displayAction': true,
|
'displayAction': true,
|
||||||
@ -16,10 +14,12 @@
|
|||||||
'displayFontSmall': true,
|
'displayFontSmall': true,
|
||||||
'w': work
|
'w': work
|
||||||
} %}
|
} %}
|
||||||
|
{% else %}
|
||||||
<div class="alert alert-warning border-warning border-1">
|
<div class="alert alert-warning border-warning border-1">
|
||||||
{{ 'This is the minimal period details'|trans ~ ': ' ~ work.id }}<br>
|
{{ '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 }}
|
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-warning border-warning border-1">
|
<div class="alert alert-warning border-warning border-1">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user