16 lines
542 B
Twig
16 lines
542 B
Twig
{% 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 %}
|
|
|
|
|
|
|