fix: Verwalte Spieleinsatz über Quoten-Tabelle
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
362966e0cd
commit
d130676940
4 changed files with 25 additions and 21 deletions
|
|
@ -32,15 +32,15 @@ require __DIR__ . '/../partials/header.php';
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="stake">Einsatz (€):</label>
|
||||
<input type="number" step="0.01" id="stake" name="stake" value="<?php echo htmlspecialchars($editSeason['stake'] ?? '25.00'); ?>" required>
|
||||
<input type="number" step="0.01" id="stake" name="stake" value="<?php echo htmlspecialchars($stakeValue ?? '25.00'); ?>" required>
|
||||
</div>
|
||||
|
||||
<hr style="margin: 2rem 0;">
|
||||
<h2>Quoten</h2>
|
||||
<div id="quotas-container">
|
||||
<?php
|
||||
$quotas = $quotasOfSeason ?? [];
|
||||
if ($editSeason === null && empty($quotasOfSeason)) {
|
||||
$quotas = $quotasForForm ?? [];
|
||||
if ($editSeason === null && empty($quotasForForm)) {
|
||||
$quotas = [
|
||||
['name' => '1. Platz', 'prc' => '50'],
|
||||
['name' => '2. Platz', 'prc' => '30'],
|
||||
|
|
@ -71,7 +71,7 @@ require __DIR__ . '/../partials/header.php';
|
|||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let quotaIndex = <?php echo count($quotas ?? []); ?>;
|
||||
let quotaIndex = <?php echo count($quotasForForm ?? []); ?>;
|
||||
|
||||
document.getElementById('add-quota').addEventListener('click', function() {
|
||||
const container = document.getElementById('quotas-container');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue