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,72 +1,115 @@
<!-- 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="row"> <div class="">
<div class="col-3"> <div class="row">
<div class="card">
<img src="<?= $dogdata['photo']?:'https://pictshare.net/1ch3e5.png' ?>/300x200/forcesize" class="card-img-top" alt="<?= escape($dogdata['name']); ?>'s profile Picture"> <div id="dog-data" class="col-sm-6 offset-sm-3 position-relative rounded-2 shadow mb-3 mb-md-5">
<div class="card-body"> <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">
<h5 class="card-title">
<?= escape($dogdata['name']); ?>
</h5>
<p class="card-text">
<ul>
<li>Alter:
<?= date_diff(date_create($dogdata['birthday']), date_create('now'))->y ?>
</li>
<?php if($dogdata['breed']): ?> <h5 class="mb-3">
<li>Rasse: <?= escape($dogdata['name']); ?>
<?= escape($dogdata['breed']); ?> </h5>
</li> <div class="table-responsive">
<?php endif; ?> <table class="table">
<?php if($dogdata['kennel_name']): ?> <tbody>
<li>Zuchtname: <tr>
<?= escape($dogdata['kennel_name']); ?> <td>Alter:</td>
</li> <td><?= date_diff(date_create($dogdata['birthday']), date_create('now'))->y ?></td>
<?php endif; ?> </tr>
<?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($ismydog===true): ?> <?php if($dogdata['breed']): ?>
<div class="d-flex justify-content-end"> <tr>
<button type="button" class="btn btn-secondary" hx-get="/dogs/edit/<?= $dogid; ?>" hx-target="#main"> <td>Rasse:</td>
<i class="fas fa-edit"></i> <td><?= escape($dogdata['breed']); ?></td>
</button> </tr>
</div> <?php endif; ?>
<?php endif; ?>
<?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> </div>
<?php if($ismydog===true): ?>
<div class="d-flex justify-content-end">
<button type="button" class="btn btn-secondary" hx-get="/dogs/edit/<?= $dogid; ?>" hx-target="#main">
<i class="fas fa-edit"></i>
</button>
</div>
<?php endif; ?>
</div> </div>
</div> </div>
<div class="col-9" id="sitemain"> </div>
<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="table-responsive"> <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">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<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: ?>