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; ?>" >
< div >
2023-10-26 21:18:32 +02:00
< label for = "tournament_name" > Veranstaltungsname< / label >
< input type = "text" value = "<?= $tournamentdata['name']; ?>" id = "tournament_name" name = "tournament_name" placeholder = "Agilititties" required >
2023-10-26 17:42:33 +02:00
< / div >
2023-10-26 21:18:32 +02:00
< 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 >
2023-10-26 17:42:33 +02:00
< div >
2023-10-26 21:18:32 +02:00
< label for = "tournament_referee" > Richter< / label >
< input type = "text" value = "<?= $tournamentdata['referee']; ?>" id = "tournament_referee" name = "tournament_referee" placeholder = "Franz Ferdinand" >
2023-10-26 17:42:33 +02:00
< / div >
2023-10-26 21:18:32 +02:00
< 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 >
2023-10-26 17:42:33 +02:00
< div >
2023-10-26 21:18:32 +02:00
< label for = "tournament_text" > Beschreibungstext< / label >
< textarea id = "tournament_text" name = "tournament_text" > <?= $tournamentdata['text']; ?> < / textarea >
2023-10-26 17:42:33 +02:00
< / 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 >
2023-10-26 20:26:28 +02:00
< / div >