<form method="post" action="<?= BASE_URL ?>/kalendar/ulozit">

    <div class="mb-3">
        <label class="form-label">Tým</label>
        <select name="tym_id" class="form-select" required>
            <?php foreach ($teams as $team): ?>
                <option value="<?php echo $team['id']; ?>"><?php echo htmlspecialchars($team['nazev']); ?></option>
            <?php endforeach; ?>
        </select>
    </div>

    <div class="mb-3">
        <label class="form-label">Typ</label>
        <select name="typ" class="form-select">
            <option value="trenink">Trénink</option>
            <option value="zapas">Zápas</option>
        </select>
    </div>

    <div class="mb-3">
        <label class="form-label">Datum a čas</label>
        <input type="datetime-local" name="datum" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Místo</label>
        <input type="text" name="misto" class="form-control">
    </div>

    <div class="mb-3">
        <label class="form-label">Popis</label>
        <textarea name="popis" class="form-control"></textarea>
    </div>

    <button title="Uložit" class="btn btn-success"><i class="ti ti-device-floppy fs-4"></i></button>
    <a href="<?= BASE_URL ?>/kalendar/index" class="btn btn-outline-secondary" title="Zpět"><i class="ti ti-arrow-back-up fs-4"></i></a>
</form>
