Added a log entry detail page for collection element deleted log entries.

This commit is contained in:
Jan Böhmer 2023-05-18 23:05:40 +02:00
parent 434826c125
commit 8bb8257e62
4 changed files with 41 additions and 9 deletions

View file

@ -0,0 +1,15 @@
{# @var entry \App\Entity\LogSystem\CollectionElementDeleted #}
{% import "log_system/details/helper.macro.html.twig" as log_helper %}
<p class="m-0">
<b>{% trans %}log.collection_deleted.deleted{% endtrans %}</b>:
{{ entity_type_label(entry.deletedElementClass) }} #{{ entry.deletedElementID }}
{% if entry.oldName is not empty %}
({{ entry.oldName }})
{% endif %}
</p>
<p class="m-0">
<b>{% trans %}log.collection_deleted.on_collection{% endtrans %}</b>:
{{ log_helper.translate_field(entry.collectionName) }}
</p>