Browse code

Version 1.5 initial commit

Benjamin Roth authored on24/06/2024 12:06:17
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,42 @@
1
+
2
+<?php $this->extend('block_unsearchable'); ?>
3
+
4
+<?php $this->block('content'); ?>
5
+
6
+<?php if (!empty($this->filters)): ?>
7
+  <div class="member-list-filter">
8
+    <?php $this->insert('memberExtension_filter', [
9
+      'filters' => $this->filters,
10
+      'requestToken' => $this->requestToken,
11
+      'formId' => $this->filterFormId,
12
+    ]) ?>
13
+  </div>
14
+<?php endif; ?>
15
+
16
+<div class="member-table">
17
+  <?php if (empty($this->members)): ?>
18
+    <p class="empty message"><?=$this->empty?></p>
19
+  <?php else: ?>
20
+    <table data-zero-label="No matching records found" data-search-label="Search:"<?= (($this->perPage > 0) && ($this->total > 10)) ? ' data-paging-true="1"' : '' ?>>
21
+      <thead>
22
+        <tr>
23
+          <?php foreach ($this->labels as $label): ?>
24
+            <th class="head"><?= $label ?></th>
25
+          <?php endforeach; ?>
26
+          <?php if ($this->hasDetailPage): ?>
27
+            <th class="head"><?= $this->trans('MSC.memberDetailHeader') ?></th>
28
+          <?php endif; ?>
29
+        </tr>
30
+      </thead>
31
+      <tbody>
32
+        <?php foreach ($this->members as $row): ?>
33
+          <?= $row ?>
34
+        <?php endforeach; ?>
35
+      </tbody>
36
+    </table>
37
+  <?php endif; ?>
38
+</div>
39
+
40
+<?= $this->pagination ?>
41
+
42
+<?php $this->endblock(); ?>