notificaiton: add title to list and forms

This commit is contained in:
2022-01-04 11:32:15 +01:00
parent 0edd5667e0
commit 5bb5468198
6 changed files with 25 additions and 10 deletions

View File

@@ -53,16 +53,23 @@
{% set notification = data.notification %}
<div class="item-bloc {% if not notification.isReadBy(app.user) %}unread{% else %}read{% endif %}">
<div class="item-row">
<div>
<h2>
<a href="{{ chill_path_add_return_path('chill_main_notification_show', {'id': notification.id}) }}">
{{ notification.title }}
</a>
{% if not notification.isReadBy(app.user) %}
<div class="badge bg-danger">{{ 'notification.is_unread'|trans }}</div>
{% endif %}
</h2>
</div>
<div class="item-row">
<div class="item-col">
{% if step == 'inbox' %}
{{ 'notification.from'|trans }}: {{ notification.sender|chill_entity_render_string }}
{% endif %}
{% if not notification.isReadBy(app.user) %}
<div class="badge bg-danger">{{ 'notification.is_unread'|trans }}</div>
{% endif %}
</div>
<div>{{ 'notification.adressees'|trans }}{% for a in notification.addressees %}{{ a|chill_entity_render_string }}{% if not loop.last %}, {% endif %}{% endfor %}</div>
<div>{{ notification.date|format_datetime('long', 'short') }}</div>
<div class="item-col">{{ 'notification.adressees'|trans }}{% for a in notification.addressees %}{{ a|chill_entity_render_string }}{% if not loop.last %}, {% endif %}{% endfor %}</div>
<div class="item-col">{{ notification.date|format_datetime('long', 'short') }}</div>
</div>
<div class="item-row">
<div>
@@ -71,10 +78,10 @@
</blockquote>
</div>
</div>
<div class="item-row">
<div class="item-row separator">
{% include data.template with data.template_data %}
</div>
<div class="item-row">
<div class="item-row separator">
<ul class="record_actions">
<li>
<span class="notification_toggle_read_status" data-notification-id="{{ notification.id }}" data-notification-current-is-read="{{ notification.isReadBy(app.user) }}"></span>