Added preview with example elements, on LabelProfile Admin Pages.

This commit is contained in:
Jan Böhmer 2020-05-01 21:19:13 +02:00
parent 48ff81a6d1
commit 3804e2534d
3 changed files with 127 additions and 1 deletions

View file

@ -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 %}