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/tournaments.html
2023-11-03 12:37:44 +01:00

18 lines
935 B
HTML

<!-- FILEPATH: /home/chris/git/dogstats/web/pages/dogs/dog.html -->
<h1>Turnier Veranstaltungen</h1>
<p>Hier kannst du alle Veranstaltungen einsehen.</p>
<div class="tournaments-list">
<?php foreach ($tournaments as $tournament) : ?>
<div class="d-flex card">
<img src="<?= $tournament['photo'] ?>/50x50/forcesize">
<div class="card-body">
<h3><?= escape($tournament['name']); ?></h3>
<p><?= escape($tournament['date']); ?></p>
<button hx-get="/tournament/edit/<?= $tournament['id'] ?>" hx-push-url="/tournament/edit/<?= $tournament['id'] ?>" hx-target="#main" >Bearbeiten</button>
<button hx-get="/tournament/delete/<?= $tournament['id'] ?>" hx-target="#main" hx-confirm="Bist du sicher, dass du <?= escape($tournament['name']); ?> löschen willst">Löschen</button>
</div>
</div>
<?php endforeach; ?>
</div>