list edited
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
This commit is contained in:
parent
bdaa417009
commit
115fc247c4
@ -1,15 +1,19 @@
|
||||
<!-- 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">
|
||||
<div class="tournaments-list row row-cols-sm-2">
|
||||
<?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 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>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
Reference in New Issue
Block a user