This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/tournaments/list.html
piapassecker cda6945324
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
tournaments added
2023-10-26 17:42:33 +02:00

43 lines
1.1 KiB
HTML

<h1">Meine Hunde</h1>
<figure>
<table>
<thead>
<tr>
<?php foreach (array_keys($doggos[0]) as $key) : ?>
<th>
<?= $key ?>
</th>
<?php endforeach; ?>
<th>
Bearbeiten
</th>
<th>
Löschen
</th>
</tr>
</thead>
<tbody>
<?php foreach ($doggos as $dog) : ?>
<tr>
<?php foreach (array_keys($dog) as $key) : ?>
<td>
<?= $dog[$key] ?>
</td>
<?php endforeach; ?>
<td>
<button hx-get="/dogs/edit/<?= $dog['id'] ?>" hx-push-url="/dogs/edit/<?= $dog['id'] ?>" hx-target="#main" >Bearbeiten</button>
</td>
<td>
<button hx-get="/dogs/delete/<?= $dog['id'] ?>" hx-target="#main" >Löschen</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</figure>