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

This commit is contained in:
piapassecker 2023-11-20 19:49:06 +01:00
parent 6ad5deab10
commit 503afa3cee

View File

@ -1,42 +1,54 @@
<!-- FILEPATH: /home/chris/git/dogstats/web/pages/dogs/dog.html --> <!-- FILEPATH: /home/chris/git/dogstats/web/pages/dogs/dog.html -->
<div class="container"> <div class="container">
<div class="">
<div class="row"> <div class="row">
<div class="col-3">
<div class="card"> <div id="dog-data" class="col-sm-6 offset-sm-3 position-relative rounded-2 shadow mb-3 mb-md-5">
<img src="<?= $dogdata['photo']?:'https://pictshare.net/1ch3e5.png' ?>/300x200/forcesize" class="card-img-top" alt="<?= escape($dogdata['name']); ?>'s profile Picture"> <img src="<?= $dogdata['photo']?:'https://pictshare.net/1ch3e5.png' ?>/120x160/forcesize" width="120" height="160" class="rounded-5 rounded-top-0 dog-image shadow" alt="<?= escape($dogdata['name']); ?>'s profile Picture">
<div class="card-body">
<h5 class="card-title"> <h5 class="mb-3">
<?= escape($dogdata['name']); ?> <?= escape($dogdata['name']); ?>
</h5> </h5>
<p class="card-text"> <div class="table-responsive">
<ul> <table class="table">
<li>Alter: <tbody>
<?= date_diff(date_create($dogdata['birthday']), date_create('now'))->y ?> <tr>
</li> <td>Alter:</td>
<td><?= date_diff(date_create($dogdata['birthday']), date_create('now'))->y ?></td>
</tr>
<?php if($dogdata['breed']): ?> <?php if($dogdata['breed']): ?>
<li>Rasse: <tr>
<?= escape($dogdata['breed']); ?> <td>Rasse:</td>
</li> <td><?= escape($dogdata['breed']); ?></td>
</tr>
<?php endif; ?> <?php endif; ?>
<?php if($dogdata['kennel_name']): ?>
<li>Zuchtname:
<?= escape($dogdata['kennel_name']); ?>
</li>
<?php endif; ?>
<?php if($dogdata['size']): ?>
<li>Größe:
<?= escape($dogdata['size']); ?> cm
</li>
<?php endif; ?>
<?php if($dogdata['agility_size']): ?>
<li>Agility Größe:
<?= escape($dogdata['agility_size']); ?>
</li>
<?php endif; ?>
</ul>
<?php if($dogdata['kennel_name']): ?>
<tr>
<td>Zuchtname:</td>
<td><?= escape($dogdata['kennel_name']); ?></td>
</tr>
<?php endif; ?>
<?php if($dogdata['size']): ?>
<tr>
<td>Größe:</td>
<td><?= escape($dogdata['size']); ?> cm</td>
</tr>
<?php endif; ?>
<?php if($dogdata['agility_size']): ?>
<tr>
<td>Agility Größe:</td>
<td><?= escape($dogdata['agility_size']); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php if($ismydog===true): ?> <?php if($ismydog===true): ?>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<button type="button" class="btn btn-secondary" hx-get="/dogs/edit/<?= $dogid; ?>" hx-target="#main"> <button type="button" class="btn btn-secondary" hx-get="/dogs/edit/<?= $dogid; ?>" hx-target="#main">
@ -47,10 +59,42 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-9" id="sitemain"> <div class="container" id="sitemain">
<!-- table of all runs of this dog--> <!-- table of all runs of this dog-->
<div class="card p-2">
<h4>Alle Ergebnisse</h4> <h4>Alle Ergebnisse</h4>
<div class="accordion" id="accordion-dog-runs">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
2023
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordion-dog-runs">
<div class="accordion-body">
Runs 2023
<table class="table">
<thead>
<tr>
<th>Turnier</th>
<th>Lauf</th>
<th>Platz</th>
<th>Dis</th>
<th>VW</th>
<th>F</th>
<th>ZF</th>
<th>Zeit</th>
<th>GF</th>
<th>m/Sek</th>
<th>Bew.</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table"> <table class="table">
<thead> <thead>
@ -58,15 +102,14 @@
<th>Turnier</th> <th>Turnier</th>
<th>Lauf</th> <th>Lauf</th>
<th>Platz</th> <th>Platz</th>
<th>Disqualifiziert</th> <th>Dis</th>
<th>Verweigerungen</th> <th>VW</th>
<th>Fehler</th> <th>F</th>
<th>Zeitfehler</th> <th>ZF</th>
<th>Zeit</th> <th>Zeit</th>
<th>Gesamtfehler</th> <th>GF</th>
<th>m/Sek</th> <th>m/Sek</th>
<th>Bewertung</th> <th>Bew.</th>
<th>Teilnehmer</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -126,9 +169,6 @@
<td> <td>
<?= escape($result['ranking']); ?> <?= escape($result['ranking']); ?>
</td> </td>
<td><a href="/dogs/overview/<?= $result['dog'] ?>">
<?= escape( escape($dogdata['name']) ); ?>
</a></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
<?php else: ?> <?php else: ?>