31 lines
2.1 KiB
PHTML
31 lines
2.1 KiB
PHTML
<div class="inhalt">
|
|
<div class="form-container">
|
|
<h1>Event bearbeiten</h1>
|
|
<?php if (!empty(
|
|
$errors['event'])): ?>
|
|
<div class="error-box"><?=htmlspecialchars($errors['event'])?></div>
|
|
<?php endif; ?>
|
|
<form class="form-horizontal" action="index.php" method="post">
|
|
<input type="hidden" name="controller" value="Event">
|
|
<input type="hidden" name="do" value="updateEvent">
|
|
<input type="hidden" name="id" value="<?=htmlspecialchars($event['id'] ?? '')?>">
|
|
<label for="name">Name</label>
|
|
<input type="text" name="name" id="name" required value="<?=htmlspecialchars($event['name'] ?? '')?>">
|
|
<label for="start_date">Startdatum</label>
|
|
<input type="date" name="start_date" id="start_date" required value="<?=htmlspecialchars($event['start_date'] ?? '')?>">
|
|
<label for="end_date">Enddatum</label>
|
|
<input type="date" name="end_date" id="end_date" required value="<?=htmlspecialchars($event['end_date'] ?? '')?>">
|
|
<label for="location_id">Standort</label>
|
|
<input type="text" name="location_name" value="<?=htmlspecialchars($event['location_name'] ?? '')?>" readonly>
|
|
<input type="hidden" name="location_id" value="<?=htmlspecialchars($event['location_id'] ?? '')?>">
|
|
<label for="description">Beschreibung</label>
|
|
<textarea name="description" id="description" rows="7" required><?=htmlspecialchars($event['description'] ?? '')?></textarea>
|
|
<label for="max_tickets">Max. Tickets</label>
|
|
<input type="number" name="max_tickets" id="max_tickets" required value="<?=htmlspecialchars($event['max_tickets'] ?? '')?>">
|
|
<label for="ticket_price">Ticketpreis</label>
|
|
<input type="number" step="0.01" name="ticket_price" id="ticket_price" required value="<?=htmlspecialchars($event['ticket_price'] ?? '')?>">
|
|
<button class="button-register" type="submit">Änderungen speichern</button>
|
|
</form>
|
|
<a href="?controller=Event&do=showEvents">Zurück zur Übersicht</a>
|
|
</div>
|
|
</div>
|