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

18 lines
935 B
HTML
Raw Normal View History

2023-10-26 17:42:33 +02:00
<!-- FILEPATH: /home/chris/git/dogstats/web/pages/dogs/dog.html -->
2023-11-03 12:37:44 +01:00
<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>
2023-10-26 17:42:33 +02:00
</div>
2023-11-03 12:37:44 +01:00
<?php endforeach; ?>
2023-10-26 17:42:33 +02:00
</div>