forked from kiloutyg/docauposte2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.html.twig
executable file
·45 lines (43 loc) · 1023 Bytes
/
button.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends 'base.html.twig' %}
{% block title %}
Document pour
{{button.name|split('.')|first|upper}}
|
{{ parent() }}
{% endblock %}
{% block body %}
<div
class="container">
{% set matchinUploads = [] %}
{% for upload in uploads %}
{% if upload.button.id is same as(button.id) %}
{% set matchinUploads = matchinUploads|merge([upload]) %}
{% endif %}
{% endfor %}
{% if matchinUploads|length > 1 %}
<div>
<div
class="justify-content-between align-items-center ">
<h2>
<strong>
Documents pour
{{button.name|split('.')|first|upper}}
</strong>
</h2>
{% include 'services/uploads/uploaded.html.twig' %}
</div>
</div>
{% elseif matchinUploads|length < 1 %}
<div
class="justify-content-between align-items-center ">
<h2>
<strong>
Document pour
{{button.name|split('.')|first|upper}}
</strong>
</h2>
{% include 'services/uploads/uploaded.html.twig' %}
</div>
{% endif %}
</div>
{% endblock %}