34fb71ce07
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
38 lines
1.9 KiB
HTML
38 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 class="mb-3 mb-md-4">
|
|
<label for="tournament_name">Veranstaltungsname</label>
|
|
<input type="text" value="<?= $tournamentdata['name']; ?>" id="tournament_name" name="tournament_name" placeholder="Event" class="form-control" required>
|
|
</div>
|
|
|
|
<div class="mb-3 mb-md-4">
|
|
<label for="tournament_date">Datum</label>
|
|
<input type="date" value="<?= $tournamentdata['date']; ?>" id="date" name="tournament_date" class="form-control">
|
|
</div>
|
|
|
|
<div class="mb-3 mb-md-4">
|
|
<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" placeholder="1" class="form-control">
|
|
</div>
|
|
|
|
<div class="mb-3 mb-md-4">
|
|
<label for="tournament_url">Weblink</label>
|
|
<input type="text" value="<?= $tournamentdata['url']; ?>" id="tournament_url" name="tournament_url" placeholder="https://www.dognow.at/..." class="form-control">
|
|
</div>
|
|
|
|
<div class="mb-3 mb-md-4">
|
|
<label for="logo">Logo des Events</label>
|
|
<input type="file" accept="image/png, image/jpeg, image/gif" id="logo" name="logo" class="form-control">
|
|
</div>
|
|
|
|
<div class="mb-3 mb-md-4">
|
|
<label for="tournament_text">Beschreibungstext</label>
|
|
<textarea id="tournament_text" name="tournament_text" class="form-control"><?= $tournamentdata['text']; ?></textarea>
|
|
</div>
|
|
<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 -->
|
|
</form>
|
|
<div id="response"></div>
|
|
</div> |