dog overview
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s

This commit is contained in:
Chris 2023-10-31 21:50:36 +00:00
parent 7b79995796
commit a68d94f482

View File

@ -28,14 +28,13 @@
<div class="col-9" id="sitemain">
<!-- table of all runs of this dog-->
<div class="card p-2">
<h4>Ergebnisse</h4>
<p class="card-text">
<button hx-get="/dogs/addresult/<?= $dogid; ?>" hx-push-url="/dogs/addresult/<?= $dogid; ?>" hx-target="#main" class="btn btn-primary"><i class="fas fa-plus-circle"></i> Ergebnis Eintragen</button>
</p>
<h4>Alle Ergebnisse</h4>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Turnier</th>
<th>Lauf</th>
<th>Platz</th>
<th>Disqualifiziert</th>
<th>Verweigerungen</th>
@ -50,7 +49,17 @@
</thead>
<tbody>
<?php foreach($results as $result) : ?>
<?php
$t = new Tournament();
$run = new Run();
$tname = $t->getField('name',$result['tournament']);
$rname = $run->getField('name',$result['run']);
?>
<tr>
<td><a href="/tournaments/event/<?= $result['tournament']; ?>"><?= $tname; ?></a></td>
<td><a href="/runs/overview/<?= $result['run']; ?>"><?= $rname; ?></a></td>
<td><?= escape($result['ranking']); ?></td>
<td><?= $result['disqualified']?'Ja':'Nein'; ?></td>
<td><?= escape($result['refusals']); ?></td>