hundeprofile sind jetzt öffentlich
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
46cf4dcd40
commit
4794f46add
@ -209,12 +209,12 @@ class Dogs extends Page {
|
|||||||
{
|
{
|
||||||
$dogid = $this->params[0];
|
$dogid = $this->params[0];
|
||||||
$d = new Dog();
|
$d = new Dog();
|
||||||
$res = new Result();
|
|
||||||
|
|
||||||
if(!$d->isMyDog($dogid))
|
//if(!$d->isMyDog($dogid))
|
||||||
return 'Not your dog :(';
|
// return 'Not your dog :(';
|
||||||
|
|
||||||
$d->load($dogid);
|
$d->load($dogid);
|
||||||
|
$this->set('ismydog',$d->isMyDog($dogid));
|
||||||
$this->set('results', $d->getResults());
|
$this->set('results', $d->getResults());
|
||||||
$this->set('dogdata', $d->data);
|
$this->set('dogdata', $d->data);
|
||||||
$this->set('dogid', $dogid);
|
$this->set('dogid', $dogid);
|
||||||
|
@ -37,11 +37,13 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<?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">
|
||||||
<i class="fas fa-edit"></i>
|
<i class="fas fa-edit"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -68,6 +70,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<?php if(count($results) > 0): ?>
|
||||||
<?php foreach($results as $result) : ?>
|
<?php foreach($results as $result) : ?>
|
||||||
<?php
|
<?php
|
||||||
$t = new Tournament();
|
$t = new Tournament();
|
||||||
@ -128,11 +131,20 @@
|
|||||||
</a></td>
|
</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php else: ?>
|
||||||
|
<tr>
|
||||||
|
<td colspan="12">
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<i class="fas fa-info-circle"></i> Dieser Hund hat noch keine Ergebnisse
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if(count($results) > 0): ?>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div id="graph" data-bs-theme="light" class="card bg-light text-black" style="min-height: 400px;"></div>
|
<div id="graph" data-bs-theme="light" class="card bg-light text-black" style="min-height: 400px;"></div>
|
||||||
|
|
||||||
@ -214,6 +226,6 @@
|
|||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user