mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 10:57:40 +02:00
Added preview with example elements, on LabelProfile Admin Pages.
This commit is contained in:
parent
48ff81a6d1
commit
3804e2534d
3 changed files with 127 additions and 1 deletions
|
@ -12,4 +12,13 @@
|
|||
<div class="tab-pane" id="tab_options">
|
||||
{{ form_widget(form.options) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block additional_content %}
|
||||
{% if pdf_data is defined and pdf_data is not empty %}
|
||||
<div class="card mt-2 mb-2 p-1 border-secondary" style="resize: vertical; overflow: scroll; height: 250px;">
|
||||
<object id="pdf_preview" data="{{ inlineData(pdf_data, 'application/pdf') | escape('html_attr') }}"style="height: inherit">
|
||||
</object>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue