23 lines
879 B
Twig
23 lines
879 B
Twig
{% 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>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %} |