Diff: projectbased/updates/baseline/app/Views/needs/index.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<div class="d-flex align-items-center justify-content-between mb-3">
2
+
<h1 class="h4 m-0">Bedarf</h1>
3
+
<a class="btn btn-primary" href="<?= \App\Lib\Url::route('need_new') ?>">Bedarf melden</a>
4
+
</div>
5
+
6
+
<div class="card p-4">
7
+
<div class="table-responsive">
8
+
<table class="table table-sm align-middle mb-0">
9
+
<thead><tr><th>Titel</th><th>Kategorie</th><th>Region</th><th>Priorität</th><th>Status</th><th>Erstellt</th></tr></thead>
10
+
<tbody>
11
+
<?php foreach($needs as $n): ?>
12
+
<tr>
13
+
<td><?= htmlspecialchars($n['title']) ?><div class="muted small">von <?= htmlspecialchars($n['display_name']) ?></div></td>
14
+
<td><span class="badge badge-soft"><?= htmlspecialchars($n['category']) ?></span></td>
15
+
<td><?= htmlspecialchars($n['region']) ?></td>
16
+
<td><?= (int)$n['priority'] ?>/5</td>
17
+
<td><?= htmlspecialchars($n['status']) ?></td>
18
+
<td class="muted"><?= htmlspecialchars($n['created_at']) ?></td>
19
+
</tr>
20
+
<?php endforeach; ?>
21
+
</tbody>
22
+
</table>
23
+
</div>
24
+
</div>
25
+