streamlined breadcrumbs
All checks were successful
Build and push / Pulling repo on server (push) Successful in 12s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 12s
This commit is contained in:
parent
9bded6133e
commit
af05f1d520
@ -1,102 +1,109 @@
|
|||||||
<nav aria-label="breadcrumb">
|
<div class="container">
|
||||||
<ol class="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<li class="breadcrumb-item">
|
<ol class="breadcrumb">
|
||||||
<a href="/tournaments/event/<?= $tournament_id; ?>" hx-push-url="/tournaments/event/<?= $tournament_id; ?>" hx-get="/tournaments/event/<?= $tournament_id; ?>" hx-target="#main">
|
<li class="breadcrumb-item">
|
||||||
<i class="fas fa-calendar-star"></i> <?= escape($tournament['name']); ?>
|
<a href="/tournaments/event/<?= $tournament_id; ?>" hx-push-url="/tournaments/event/<?= $tournament_id; ?>" hx-get="/tournaments/event/<?= $tournament_id; ?>" hx-target="#main">
|
||||||
</a>
|
<i class="fas fa-calendar-star"></i>
|
||||||
</li>
|
<?= escape($tournament['name']); ?>
|
||||||
<li class="breadcrumb-item">
|
</a>
|
||||||
<a href="/runs/overview/<?= $run_id; ?>" hx-push-url="/runs/overview/<?= $run_id; ?>" hx-get="/runs/overview/<?= $run_id; ?>" hx-target="#main">
|
</li>
|
||||||
<i class="far fa-running"></i> <?= escape($run['name']); ?>
|
<li class="breadcrumb-item">
|
||||||
</a>
|
<a href="/runs/overview/<?= $run_id; ?>" hx-push-url="/runs/overview/<?= $run_id; ?>" hx-get="/runs/overview/<?= $run_id; ?>" hx-target="#main">
|
||||||
</li>
|
<i class="far fa-running"></i>
|
||||||
<li class="breadcrumb-item active" aria-current="page">
|
<?= escape($run['name']); ?>
|
||||||
<i class="fas fa-edit"></i> <?= $result_id?'Bearbeiten':'Eintragen'; ?>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
<li class="breadcrumb-item active" aria-current="page">
|
||||||
</nav>
|
<i class="fas fa-edit"></i>
|
||||||
<h2>Ergebnis
|
<?= $result_id?'Bearbeiten':'Eintragen'; ?>
|
||||||
<?= $result_id?'Bearbeiten':'Eintragen'; ?>
|
</li>
|
||||||
</h2>
|
</ol>
|
||||||
<form hx-post="/runs/validateresults" hx-encoding='multipart/form-data' hx-target="#response">
|
</nav>
|
||||||
<input type="hidden" name="result_id" value="<?= $result_id; ?>">
|
<h2>Ergebnis
|
||||||
<input type="hidden" name="run_id" value="<?= $run_id; ?>">
|
<?= $result_id?'Bearbeiten':'Eintragen'; ?>
|
||||||
<div>
|
</h2>
|
||||||
<label for="dog">Hund</label>
|
<form hx-post="/runs/validateresults" hx-encoding='multipart/form-data' hx-target="#response">
|
||||||
<select id="dog" name="dog">
|
<input type="hidden" name="result_id" value="<?= $result_id; ?>">
|
||||||
<option value="false" <?= !$result['dog']?'selected':''; ?>>-- Bitte auswählen --</option>
|
<input type="hidden" name="run_id" value="<?= $run_id; ?>">
|
||||||
<?php foreach($_SESSION['user']->data['dogs'] as $dogid) : ?>
|
<div>
|
||||||
<?php
|
<label for="dog">Hund</label>
|
||||||
|
<select id="dog" name="dog">
|
||||||
|
<option value="false" <?=!$result['dog']?'selected':''; ?>>-- Bitte auswählen --</option>
|
||||||
|
<?php foreach($_SESSION['user']->data['dogs'] as $dogid) : ?>
|
||||||
|
<?php
|
||||||
$dog = new Dog();
|
$dog = new Dog();
|
||||||
$dog->load($dogid);
|
$dog->load($dogid);
|
||||||
$dd = $dog->data;
|
$dd = $dog->data;
|
||||||
?>
|
?>
|
||||||
<option value="<?= $dogid ?>" <?=$result['dog']==$dogid ?'selected':''; ?>><?= escape($dd['name']); ?></option>
|
<option value="<?= $dogid ?>" <?=$result['dog']==$dogid ?'selected':''; ?>>
|
||||||
<?php endforeach; ?>
|
<?= escape($dd['name']); ?>
|
||||||
</select>
|
</option>
|
||||||
</div>
|
<?php endforeach; ?>
|
||||||
<div class="form-check form-switch">
|
</select>
|
||||||
<label class="form-check-label" for="disqualified">Disqualifiziert</label>
|
</div>
|
||||||
<input class="form-check-input" type="checkbox" id="disqualified" name="disqualified" value="1" <?= $result['disqualified']=='1'?'checked':''; ?>>
|
<div class="form-check form-switch">
|
||||||
</div>
|
<label class="form-check-label" for="disqualified">Disqualifiziert</label>
|
||||||
<div>
|
<input class="form-check-input" type="checkbox" id="disqualified" name="disqualified" value="1" <?=$result['disqualified']=='1' ?'checked':''; ?>>
|
||||||
<label for="refusals">Verweigeresultgen</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['refusals']; ?>" id="refusals" name="refusals" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="refusals">Verweigeresultgen</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['refusals']; ?>" id="refusals" name="refusals" placeholder="Flowbite">
|
||||||
<label for="faults">Fehler</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['faults']; ?>" id="faults" name="faults" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="faults">Fehler</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['faults']; ?>" id="faults" name="faults" placeholder="Flowbite">
|
||||||
<label for="time_faults">Zeitfehler</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['time_faults']; ?>" id="time_faults" name="time_faults" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="time_faults">Zeitfehler</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['time_faults']; ?>" id="time_faults" name="time_faults" placeholder="Flowbite">
|
||||||
<label for="time">Zeit</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['time']; ?>" id="time" name="time" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="time">Zeit</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['time']; ?>" id="time" name="time" placeholder="Flowbite">
|
||||||
<label for="penalties">Gesamtfehler</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['penalties']; ?>" id="penalties" name="penalties" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="penalties">Gesamtfehler</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['penalties']; ?>" id="penalties" name="penalties" placeholder="Flowbite">
|
||||||
<label for="time_speed">m/Sek</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['time_speed']; ?>" id="time_speed" name="time_speed" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="time_speed">m/Sek</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['time_speed']; ?>" id="time_speed" name="time_speed" placeholder="Flowbite">
|
||||||
<label for="bewertung">Bewertung</label>
|
</div>
|
||||||
<select id="bewertung" name="bewertung">
|
<div>
|
||||||
<option value="V" <?=$result['bewertung']=='V' ?'selected':''; ?>>V</option>
|
<label for="bewertung">Bewertung</label>
|
||||||
<option value="SG" <?=$result['bewertung']=='SG' ?'selected':''; ?>>SG</option>
|
<select id="bewertung" name="bewertung">
|
||||||
<option value="G" <?=$result['bewertung']=='G' ?'selected':''; ?>>G</option>
|
<option value="V" <?=$result['bewertung']=='V' ?'selected':''; ?>>V</option>
|
||||||
<option Galue="B" <?=$result['bewertung']=='B' ?'selected':''; ?>>B</option>
|
<option value="SG" <?=$result['bewertung']=='SG' ?'selected':''; ?>>SG</option>
|
||||||
</select>
|
<option value="G" <?=$result['bewertung']=='G' ?'selected':''; ?>>G</option>
|
||||||
</div>
|
<option Galue="B" <?=$result['bewertung']=='B' ?'selected':''; ?>>B</option>
|
||||||
<div>
|
</select>
|
||||||
<label for="points">Punkte</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['points']; ?>" id="points" name="points" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="points">Punkte</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['points']; ?>" id="points" name="points" placeholder="Flowbite">
|
||||||
<label for="rank">Platz</label>
|
</div>
|
||||||
<input type="number" value="<?= $result['rank']; ?>" id="rank" name="rank" placeholder="Flowbite">
|
<div>
|
||||||
</div>
|
<label for="rank">Platz</label>
|
||||||
<div>
|
<input type="number" value="<?= $result['rank']; ?>" id="rank" name="rank" placeholder="Flowbite">
|
||||||
<label for="uploads">Uploads</label>
|
</div>
|
||||||
<input type="file" accept="image/png, image/jpeg, image/gif" id="uploads" name="uploads">
|
<div>
|
||||||
</div>
|
<label for="uploads">Uploads</label>
|
||||||
<div>
|
<input type="file" accept="image/png, image/jpeg, image/gif" id="uploads" name="uploads">
|
||||||
<label for="video-url">Video Url</label>
|
</div>
|
||||||
<input type="text" value="<?= $result['video-url']; ?>" class="form-control" id="video-url" aria-describedby="basic-addon3">
|
<div>
|
||||||
</div>
|
<label for="video-url">Video Url</label>
|
||||||
<div>
|
<input type="text" value="<?= $result['video-url']; ?>" class="form-control" id="video-url" aria-describedby="basic-addon3">
|
||||||
<label for="memo">Memo</label>
|
</div>
|
||||||
<textarea value="<?= $result['memo']; ?>" id="memo" name="memo" placeholder="Deine Gedankengänge"></textarea>
|
<div>
|
||||||
</div>
|
<label for="memo">Memo</label>
|
||||||
<div class="form-check form-switch">
|
<textarea value="<?= $result['memo']; ?>" id="memo" name="memo" placeholder="Deine Gedankengänge"></textarea>
|
||||||
<label class="form-check-label" for="public">Daten im Lauf veröffentlichen</label>
|
</div>
|
||||||
<input class="form-check-input" type="checkbox" id="public" name="public" value="1" <?= $result['public']!='0'?'checked':''; ?>>
|
<div class="form-check form-switch">
|
||||||
</div>
|
<label class="form-check-label" for="public">Daten im Lauf veröffentlichen</label>
|
||||||
<button type="submit" name="submit" value="true" class="btn btn-primary">Speichern</button>
|
<input class="form-check-input" type="checkbox" id="public" name="public" value="1" <?=$result['public']!='0' ?'checked':''; ?>>
|
||||||
|
</div>
|
||||||
|
<button type="submit" name="submit" value="true" class="btn btn-primary">Speichern</button>
|
||||||
|
|
||||||
<div id="response"></div>
|
<div id="response"></div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
@ -1,8 +1,13 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="breadcrumb-item"><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>
|
<li class="breadcrumb-item">
|
||||||
<li class="breadcrumb-item active" aria-current="page"><?= escape($run['name']); ?></li>
|
<i class="fas fa-calendar-star"></i>
|
||||||
|
<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>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">
|
||||||
|
<i class="far fa-running"></i> <?= escape($run['name']); ?>
|
||||||
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Reference in New Issue
Block a user