Chris
00c2e1ded6
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
43 lines
1.9 KiB
HTML
43 lines
1.9 KiB
HTML
<div>
|
|
<h1>Turnier <?= $tournamentid?'Bearbeiten':'Hinzufügen'; ?></h1>
|
|
|
|
<form id="tournamenteditform" hx-post="/tournaments/edit" hx-encoding='multipart/form-data' hx-target="#response">
|
|
<input type="hidden" name="tournament_id" value="<?= $tournamentid; ?>">
|
|
<div>
|
|
<label for="tournament_name">Veranstaltungsname</label>
|
|
<input type="text" value="<?= $tournamentdata['name']; ?>" id="tournament_name" name="tournament_name" placeholder="Agilititties" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="tournament_date">Datum</label>
|
|
<input type="date" value="<?= $tournamentdata['date']; ?>" id="date" name="tournament_date" placeholder="Zuchtname">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="tournament_duration">Dauer der Veranstaltung in tagen</label>
|
|
<input type="number" min="1" max="7" value="<?= $tournamentdata['duration']; ?>" id="tournament_duration" name="tournament_duration">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="tournament_referee">Richter</label>
|
|
<input type="text" value="<?= $tournamentdata['referee']; ?>" id="tournament_referee" name="tournament_referee" placeholder="Franz Ferdinand">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="tournament_url">Weblink</label>
|
|
<input type="text" value="<?= $tournamentdata['url']; ?>" id="tournament_url" name="tournament_url" placeholder="https://facebook.com/...">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="logo">Logo des Events</label>
|
|
<input type="file" accept="image/png, image/jpeg, image/gif" id="logo" name="logo">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="tournament_text">Beschreibungstext</label>
|
|
<textarea id="tournament_text" name="tournament_text"><?= $tournamentdata['text']; ?></textarea>
|
|
</div>
|
|
<button type="submit" name="submit" value="true" class="btn btn-primary">Submit</button> <!-- Submit Button führt auf eine neue Seite wo man die Laufinfo eingibt -->
|
|
</form>
|
|
<div id="response"></div>
|
|
</div> |