This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/tournaments/edit_tournament.html

38 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2023-10-26 17:42:33 +02:00
<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; ?>">
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
2023-10-26 21:18:32 +02:00
<label for="tournament_name">Veranstaltungsname</label>
2023-10-27 11:30:29 +02:00
<input type="text" value="<?= $tournamentdata['name']; ?>" id="tournament_name" name="tournament_name" placeholder="Event" class="form-control" required>
2023-10-26 17:42:33 +02:00
</div>
2023-10-26 21:18:32 +02:00
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
2023-10-26 21:18:32 +02:00
<label for="tournament_date">Datum</label>
2023-10-27 11:30:29 +02:00
<input type="date" value="<?= $tournamentdata['date']; ?>" id="date" name="tournament_date" class="form-control">
2023-10-26 21:18:32 +02:00
</div>
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
<label for="tournament_duration">Dauer der Veranstaltung in Tagen</label>
2023-11-02 17:59:19 +01:00
<input type="number" min="1" max="7" value="<?= $tournamentdata['duration']; ?>" id="tournament_duration" name="tournament_duration" value="1" class="form-control">
2023-10-26 21:18:32 +02:00
</div>
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
2023-10-26 21:18:32 +02:00
<label for="tournament_url">Weblink</label>
2023-10-27 11:30:29 +02:00
<input type="text" value="<?= $tournamentdata['url']; ?>" id="tournament_url" name="tournament_url" placeholder="https://www.dognow.at/..." class="form-control">
2023-10-26 21:18:32 +02:00
</div>
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
2023-10-26 21:18:32 +02:00
<label for="logo">Logo des Events</label>
2023-10-27 11:30:29 +02:00
<input type="file" accept="image/png, image/jpeg, image/gif" id="logo" name="logo" class="form-control">
2023-10-26 21:18:32 +02:00
</div>
2023-10-27 11:30:29 +02:00
<div class="mb-3 mb-md-4">
2023-10-26 21:18:32 +02:00
<label for="tournament_text">Beschreibungstext</label>
2023-10-27 11:30:29 +02:00
<textarea id="tournament_text" name="tournament_text" class="form-control"><?= $tournamentdata['text']; ?></textarea>
2023-10-26 17:42:33 +02:00
</div>
2023-10-27 11:30:29 +02:00
<button type="submit" name="submit" value="true" class="btn btn-primary">Weiter</button> <!-- Submit Button führt auf eine neue Seite wo man die Laufinfo eingibt -->
2023-10-26 17:42:33 +02:00
</form>
<div id="response"></div>
</div>