feat: Saisons um Runden-Verwaltung erweitern

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
torsten 2026-10-04 18:02:53 +02:00
parent 55e03541ff
commit f852da3570
4 changed files with 73 additions and 9 deletions

View file

@ -28,8 +28,26 @@ require __DIR__ . '/../partials/header.php';
</div>
<div class="form-group">
<label for="rounds">Runden:</label>
<input type="number" id="rounds" name="rounds" value="<?php echo htmlspecialchars($editSeason['rounds'] ?? '34'); ?>" required>
<input type="number" id="rounds" name="rounds" value="<?php echo htmlspecialchars($editSeason['rounds'] ?? '34'); ?>" <?php echo $editSeason ? 'readonly' : 'required' ?>>
</div>
<?php if ($editSeason && !empty($roundsOfSeason)): ?>
<hr style="margin: 2rem 0;">
<h2>Runden dieser Saison</h2>
<?php foreach ($roundsOfSeason as $round): ?>
<div class="form-group">
<label for="round_<?php echo $round['id']; ?>">
Runde <?php echo htmlspecialchars(preg_replace('/[^0-9]/', '', $round['name'])); ?>:
</label>
<input type="text"
id="round_<?php echo $round['id']; ?>"
name="rounds_names[<?php echo $round['id']; ?>]"
value="<?php echo htmlspecialchars($round['name']); ?>"
required>
</div>
<?php endforeach; ?>
<?php endif; ?>
<div class="form-group">
<button type="submit"><?php echo $editSeason ? 'Speichern' : 'Anlegen'; ?></button>
<?php if ($editSeason): ?>