nineskeletor/templates/Pagewidget/viewfile.html.twig

16 lines
542 B
Twig
Raw Normal View History

2023-02-01 09:03:27 +01:00
{% set widgetname="file" %}
{% extends 'Pagewidget/widget.twig' %}
{% block widgetaction %}
{% if canupdate %}
<i class="fa fa-plus fa-fw" title="Ajouter Images" title="Ajouter Fichiers" onClick="addFile({{ entity.id }})"></i>
{% endif %}
{% endblock %}
{% block widgetbody %}
<iframe id="framefile-{{id}}" src="{{ path("app_"~access~"_file_list",{'category':category,'id':id, 'usage':usage, 'view':view}) }}" class="{% if entity.autoajust %}localframe {% endif %}" style="width:100%"></iframe>
{% endblock %}
2023-01-12 16:14:31 +01:00