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

22 lines
1.4 KiB
HTML
Raw Permalink 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>
2023-11-03 19:44:47 +01:00
<div class="tournaments-list row row-cols-sm-2">
2023-11-03 12:37:44 +01:00
<?php foreach ($tournaments as $tournament) : ?>
2023-11-03 19:44:47 +01:00
<div class="p-2">
<div class="d-flex border">
<img src="<?= $tournament['photo']?:'https://pictshare.net/prrnrk.jpg' ?>/130x100/forcesize" class="" alt="<?= escape($tournament['name']); ?>'s event Picture">
<div class="m-3">
<h3 class="h5"><a href="/tournaments/event/<?= $tournament['id'] ?>" class="text-body link-underline link-underline-opacity-0"><?= escape($tournament['name']); ?></a></h3>
<p><?= date("d.m.y",strtotime($tournament['date'])); ?></p>
</div>
<div class="m-3 ms-auto">
<button hx-get="/tournament/edit/<?= $tournament['id'] ?>" hx-push-url="/tournament/edit/<?= $tournament['id'] ?>" hx-target="#main" class="btn btn-primary"><i class="fas fa-edit"></i></button>
<button hx-get="/tournament/delete/<?= $tournament['id'] ?>" hx-target="#main" hx-confirm="Bist du sicher, dass du <?= escape($tournament['name']); ?> löschen willst" class="btn btn-danger"><i class="fas fa-trash"></i></button>
</div>
2023-11-03 12:37:44 +01:00
</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>