55 lines
3.1 KiB
HTML
55 lines
3.1 KiB
HTML
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-3">
|
||
|
<div class="card">
|
||
|
<?php if($run['photo']): ?><img src="<?= $run['photo'] ?>/300x170/fixedsize" class="card-img-top" alt="<?= escape($run['name']); ?>'s profile Picture"> <?php endif; ?>
|
||
|
<div class="card-body">
|
||
|
<h5 class="card-title"><?= escape($run['name']); ?></h5>
|
||
|
<p class="card-text">
|
||
|
<ul>
|
||
|
|
||
|
<li>Gehört zu <a href="/tournaments/event/<?= $tournament_id; ?>" hx-push-url="/tournaments/event/<?= $tournament_id; ?>" hx-get="/tournaments/event/<?= $tournament_id; ?>" hx-target="#main"><?= escape($tournament['name']); ?></a></li>
|
||
|
<?php if($run['category']): ?> <li>Typ: <?= escape($run['category']); ?></li><?php endif; ?>
|
||
|
<?php if($run['length']): ?> <li>Länge: <?= escape($run['length']); ?>m</li><?php endif; ?>
|
||
|
<?php if($run['time_standard']): ?> <li>Normzeit: <?= escape($run['time_standard']); ?>s</li><?php endif; ?>
|
||
|
<?php if($run['time_max']): ?> <li>Maxzeit: <?= escape($run['time_max']); ?>s</li><?php endif; ?>
|
||
|
<?php if($run['referee']): ?> <li>Richter: <?= escape($run['referee']); ?></li><?php endif; ?>
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
<div class="d-flex justify-content-end">
|
||
|
<?php if($admin===true): ?>
|
||
|
<button type="button" class="btn btn-secondary" hx-get="/runs/edit/<?= $run_id; ?>" hx-target="#main">
|
||
|
<i class="fas fa-edit"></i>
|
||
|
</button>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="card p-2">
|
||
|
<?php if($admins && count($admins)>0): ?> <h6>Admins</h6> <?php endif; ?>
|
||
|
<?php foreach($admins as $adm) : ?>
|
||
|
<img src="https://pictshare.net/identicon/<?= $adm['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($adm['name']); ?>" title="<?= escape($adm['firstname'].' '.$adm['lastname']); ?>">
|
||
|
<?php endforeach; ?>
|
||
|
|
||
|
<?php if($members && count($members)>0): ?> <hr/> <h6>Mitglieder</h6> <?php endif; ?>
|
||
|
<?php foreach($members as $member) : ?>
|
||
|
<img src="https://pictshare.net/identicon/<?= $member['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($member['name']); ?>" title="<?= escape($member['firstname'].' '.$member['lastname']); ?>">
|
||
|
<?php endforeach; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-6" id="sitemain">
|
||
|
<div class="card p-2">
|
||
|
<h4>Ergebnisse</h4>
|
||
|
<p class="card-text">
|
||
|
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|