Chris
bd151ab4e6
Some checks failed
Build and push / Pulling repo on server (push) Failing after 17s
43 lines
1.1 KiB
HTML
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> |