nineskeletor/templates/Pagewidget/viewgalery.html.twig

23 lines
879 B
Twig
Raw Permalink Normal View History

2023-02-01 09:03:27 +01:00
{% set widgetname="galery" %}
{% extends 'Pagewidget/widget.twig' %}
{% block widgetaction %}
{% if canadd %}
<i class="fa fa-plus fa-fw" title="Ajouter Images" title="Ajouter Images" onClick="addImage({{ entity.id }})"></i>
{% endif %}
{% endblock %}
{% block widgetbody %}
{% if canadd %}
<a class="btn btn-sm btn-success mb-1" onClick="addImage({{ entity.id }})"><i class="fa fa-plus fa-fw" title="Ajouter Images" ></i> Ajouter des Images</a>
{% endif %}
<div class="masonry" style="display:none">
<div class="masonry-sizer" style="display:none"></div>
{% for file in files %}
<div class="masonry-item">
<a onClick="viewFile({{ entity.id }},'{{file.Key}}',true)"><img src="{{path("app_minio_image",{file:file.Key}) }}" style="width:100%;"></a>
2023-01-12 16:14:31 +01:00
</div>
2023-02-01 09:03:27 +01:00
{% endfor %}
2023-01-12 16:14:31 +01:00
</div>
2023-02-01 09:03:27 +01:00
{% endblock %}