<h3>Přidat poznámku</h3>

<form method="post" action="<?= BASE_URL ?>/nastenka/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">Text poznámky</label>
        <textarea name="obsah" class="form-control" rows="4" required></textarea>
    </div>

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