send system notification on period confirmation

This commit is contained in:
2021-12-30 02:10:35 +01:00
parent 7bc4ad9779
commit 5bf1b9d8bd
12 changed files with 233 additions and 23 deletions

View File

@@ -1,7 +1,11 @@
<div class="list_notification_for">
{% for notification in notifications %}
<div class="notification {% if notification.isReadBy(app.user) %}read{% else %}unread{% endif %}">
<div>{{ 'notification.you were notified by %sender%'|trans({'%sender%': notification.sender|chill_entity_render_string }) }}</div>
{% if not notification.isSystem %}
<div>{{ 'notification.you were notified by %sender%'|trans({'%sender%': notification.sender|chill_entity_render_string }) }}</div>
{% else %}
<div>{{ 'notification.you were notified by system'|trans }}</div>
{% endif %}
<div>
<ul class="record_actions_small">
<li>