feat: Benutzerverwaltung um Zahlungsstatus für aktuelle Saison erweitern
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
9767767b13
commit
fd20fab5b4
3 changed files with 73 additions and 0 deletions
|
|
@ -42,6 +42,14 @@ require __DIR__ . '/../partials/header.php';
|
|||
<label for="admin">Admin:</label>
|
||||
<input type="checkbox" id="admin" name="admin" value="1" <?php echo !empty($editUser['admin']) ? 'checked' : ''; ?>>
|
||||
</div>
|
||||
|
||||
<?php if ($editUser && !empty($currentSeason)): ?>
|
||||
<div class="form-group">
|
||||
<label for="has_paid">Bezahlt (<?php echo htmlspecialchars($currentSeason['name']); ?>):</label>
|
||||
<input type="checkbox" id="has_paid" name="has_paid" value="1" <?php echo isset($payments[$editUser['id']]) ? 'checked' : ''; ?>>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit"><?php echo $editUser ? 'Speichern' : 'Anlegen'; ?></button>
|
||||
<?php if ($editUser): ?>
|
||||
|
|
@ -60,6 +68,9 @@ require __DIR__ . '/../partials/header.php';
|
|||
<th>Name</th>
|
||||
<th>E-Mail</th>
|
||||
<th>Admin</th>
|
||||
<?php if (!empty($currentSeason)): ?>
|
||||
<th>Bezahlt (<?php echo htmlspecialchars($currentSeason['name']); ?>)</th>
|
||||
<?php endif; ?>
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -69,6 +80,15 @@ require __DIR__ . '/../partials/header.php';
|
|||
<td><?php echo htmlspecialchars($user['name']); ?></td>
|
||||
<td><?php echo htmlspecialchars($user['email']); ?></td>
|
||||
<td><?php echo $user['admin'] ? 'Ja' : 'Nein'; ?></td>
|
||||
<?php if (!empty($currentSeason)): ?>
|
||||
<td>
|
||||
<?php if (isset($payments[$user['id']])): ?>
|
||||
Ja (<?php echo date('d.m.Y', strtotime($payments[$user['id']])); ?>)
|
||||
<?php else: ?>
|
||||
Nein
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td>
|
||||
<a href="/index.php?page=admin_users&edit_id=<?php echo $user['id']; ?>">Bearbeiten</a>
|
||||
<form action="/index.php?page=admin_users" method="post" style="display: inline;" onsubmit="return confirm('Sicher, dass du diesen Benutzer löschen willst?');">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue