36 lines
1.3 KiB
PHTML
36 lines
1.3 KiB
PHTML
<div class="inhalt">
|
|
<h2>Create Event</h2>
|
|
<form action="/Event/create" method="POST">
|
|
<label>Event Name:</label>
|
|
<input type="text" name="name" required><br>
|
|
|
|
<label>Start Date:</label>
|
|
<input type="date" name="start_date" required><br>
|
|
|
|
<label>End Date:</label>
|
|
<input type="date" name="end_date" required><br>
|
|
|
|
<label>Location:</label>
|
|
<select name="location_id" required>
|
|
<option value="">Select location</option>
|
|
<?php if (!empty($locations)): ?>
|
|
<?php foreach ($locations as $loc): ?>
|
|
<option value="<?= htmlspecialchars($loc['location_id']) ?>">
|
|
<?= htmlspecialchars($loc['city']) ?>, <?= htmlspecialchars($loc['street']) ?> <?= htmlspecialchars($loc['house_number']) ?>
|
|
</option>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</select><br>
|
|
|
|
<label>Description:</label>
|
|
<textarea name="description" required></textarea><br>
|
|
|
|
<label>Max Tickets:</label>
|
|
<input type="number" name="max_tickets" required><br>
|
|
|
|
<label>Ticket Price:</label>
|
|
<input type="number" step="0.01" name="ticket_price" required><br>
|
|
|
|
<button type="submit">Create Event</button>
|
|
</form>
|
|
</div>
|