This commit is contained in:
@@ -29,7 +29,37 @@ $allowNoKidsChecked = $editEvent ? ((int)$editEvent['allow_kids'] === 0) : false
|
||||
</div>
|
||||
|
||||
<div class="container dash-section">
|
||||
<div class="dash-grid-2">
|
||||
<div class="dash-grid">
|
||||
<div class="card dash-card">
|
||||
<div class="badge">Community</div>
|
||||
<h3>Dein Community-Status</h3>
|
||||
<ul class="dash-list">
|
||||
<li>Rang: <?= htmlspecialchars(trim(($communityLevel['icon'] ?? '') . ' ' . ($communityLevel['label'] ?? '')), ENT_QUOTES) ?></li>
|
||||
<li>Punkte: <?= number_format((float)$communityPoints, 1, ',', '.') ?></li>
|
||||
<li>Rollen: <?= htmlspecialchars($communityRoles ? implode(', ', $communityRoles) : 'Keine besonderen Rollen', ENT_QUOTES) ?></li>
|
||||
<li>Themen erstellen: <?= $communityRestrictions['thread_create_blocked'] ? 'Gesperrt' : 'Erlaubt' ?></li>
|
||||
<li>Antworten schreiben: <?= $communityRestrictions['reply_blocked'] ? 'Gesperrt' : 'Erlaubt' ?></li>
|
||||
</ul>
|
||||
<?php if (!empty($communityRestrictions['reason'])): ?>
|
||||
<p class="muted small" style="margin-top:10px;">Hinweis zur Community-Sperre: <?= htmlspecialchars((string)$communityRestrictions['reason'], ENT_QUOTES) ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($communityCanApply): ?>
|
||||
<form method="post" class="stack gap-6" style="margin-top:12px;">
|
||||
<input type="hidden" name="action" value="community_admin_apply">
|
||||
<label class="label" for="communityMotivation">Bewerbung als Forum-Admin</label>
|
||||
<textarea id="communityMotivation" name="motivation" class="textarea" rows="4" placeholder="Warum möchtest du die Community als Forum-Admin unterstützen?" required></textarea>
|
||||
<button class="btn" type="submit">Bewerbung absenden</button>
|
||||
</form>
|
||||
<?php elseif ($communityApplication): ?>
|
||||
<div style="margin-top:12px;">
|
||||
<p class="muted small" style="margin:0;">Letzte Bewerbung: <strong><?= htmlspecialchars((string)$communityApplication['status'], ENT_QUOTES) ?></strong></p>
|
||||
<?php if (!empty($communityApplication['decision_reason'])): ?>
|
||||
<p class="muted small" style="margin-top:6px;"><?= htmlspecialchars((string)$communityApplication['decision_reason'], ENT_QUOTES) ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="card dash-card">
|
||||
<div class="badge">Profil</div>
|
||||
<h3>Deine Angaben</h3>
|
||||
|
||||
Reference in New Issue
Block a user