mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-31 07:09:45 +02:00
Show entity preview image on admin page
This commit is contained in:
parent
d3023ea945
commit
a925597565
5 changed files with 22 additions and 5 deletions
|
@ -1,4 +1,7 @@
|
|||
{% import "components/tree_macros.html.twig" as tree %}
|
||||
{% import "helper.twig" as helper %}
|
||||
|
||||
{# @var entity \App\Entity\Base\AbstractStructuralDBElement #}
|
||||
|
||||
{% extends "main_card.html.twig" %}
|
||||
|
||||
|
@ -38,7 +41,12 @@
|
|||
{% if timeTravel is defined and timeTravel is not null %}
|
||||
({{ timeTravel|format_datetime('short') }})
|
||||
{% endif %}
|
||||
<span class="float-end">{% block quick_links %}{% endblock %}</span>
|
||||
<div class="float-end">
|
||||
{% block quick_links %}{% endblock %}
|
||||
{% block preview_picture %}
|
||||
{{ helper.entity_preview_sm(entity) }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% else %}
|
||||
<strong>{% block new_title %}{% trans %}new.caption{% endtrans %}{% endblock %}</strong>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue