<h1>Upravit tým</h1>

<div class="card">
    <div class="card-body">
        <form method="post" action="">
            <div class="mb-3">
                <label class="form-label">Název týmu *</label>
                <input type="text" name="nazev" class="form-control" value="<?= htmlspecialchars($team['nazev'] ?? '') ?>" required>
            </div>

            <div class="mb-3">
                <label class="form-label">Popis</label>
                <textarea name="popis" class="form-control" rows="4"><?= htmlspecialchars($team['popis'] ?? '') ?></textarea>
            </div>

            <div class="mb-3">
                <button type="submit" title="Uložit" class="btn btn-success"><i class="ti ti-device-floppy fs-4"></i></button>
                <a href="<?= BASE_URL ?>/team/show?id=<?= $team['id'] ?>" class="btn btn-outline-secondary" title="Zpět"><i class="ti ti-arrow-back-up fs-4"></i></a>
            </div>
        </form>
    </div>
</div>
