Skip to content

Commit 21b7037

Browse files
committed
fix(ZMS-3485): fix merging custom template
1 parent 79b2a1f commit 21b7037

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

zmsadmin/templates/block/queue/table.twig

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,21 @@
181181
</div>
182182

183183
<div class="table-responsive-wrapper">
184-
<h2 class="accordion">
184+
<h2 class="accordion {{ showCalledList ? 'active' : '' }}" id="called-appointments">
185185
<span class="color-green">
186186
<i class="fas fa-play-circle" aria-hidden="true"></i>
187187
</span>
188-
Offene Aufrufe ({{ clusterQueueListCalled|length }})
188+
Offene Aufrufe
189+
{% if showCalledList %}
190+
({{ queueListCalled|length }})
191+
{% endif %}
189192
<span class="accordion-icon">
190193
<i class="fas fa-angle-down icon-down" aria-hidden="true"></i>
191194
<i class="fas fa-angle-up icon-up" aria-hidden="true"></i>
192195
</span>
193196
</h2>
194-
<div class="table-responsive-wrapper accordion-panel">
195-
{% if clusterQueueListCalled|length %}
197+
<div class="table-responsive-wrapper accordion-panel" style="{{ showCalledList ? 'display:block;' : '' }}">
198+
{% if queueListCalled|length %}
196199
<table id="table-called-appointments" class="table--base compact">
197200
<thead>
198201
<tr>
@@ -208,7 +211,7 @@
208211
</tr>
209212
</thead>
210213
{% set lfdnr = 0 %}
211-
{% for item in clusterQueueListCalled %}
214+
{% for item in queueListCalled %}
212215
{% set lfdnr = lfdnr + 1 %}
213216
<tr class="parked">
214217
<td>

0 commit comments

Comments
 (0)