change default template to show an entity using entity_to_array

This commit is contained in:
Simon Vieille 2022-05-09 14:31:17 +02:00
parent ff599a7101
commit 99337b341f
Signed by: deblan
GPG Key ID: 579388D585F70417
1 changed files with 8 additions and 1 deletions

View File

@ -1 +1,8 @@
<p>{{ '{__toString}'|build_string(entity) }}</p>
<div class="row">
<div class="col-md-12 p-3">
{% for item in entity_to_array(entity) %}
<div class="font-weight-bold">{{ item.name|trans }}</div>
<div class="mb-3">{{ item.value }}</div>
{% endfor %}
</div>
</div>