This commit is contained in:
@@ -6,6 +6,7 @@ $editing = isset($editEvent) && $editEvent !== null;
|
||||
$actionEvent = $editing ? 'event_update' : 'event_add';
|
||||
$startVal = $editEvent ? date('Y-m-d\TH:i', strtotime((string)$editEvent['starts_at'])) : '';
|
||||
$allowNoKidsChecked = $editEvent ? ((int)$editEvent['allow_kids'] === 0) : false;
|
||||
$activeAvatarPresetGroup = \App\Avatar::presetGroupForPreset((string)($profile['avatar_preset'] ?? 'modern_001'));
|
||||
$sectionLinks = [
|
||||
'profile' => 'Profil',
|
||||
'children' => 'Kinder',
|
||||
@@ -309,10 +310,10 @@ $sectionLinks = [
|
||||
<?php foreach ($avatarPresetGroups as $groupKey => $groupMeta): ?>
|
||||
<button
|
||||
type="button"
|
||||
class="avatar-preset-filter <?= $groupKey === 'fair' ? 'is-active' : '' ?>"
|
||||
class="avatar-preset-filter <?= $groupKey === $activeAvatarPresetGroup ? 'is-active' : '' ?>"
|
||||
data-avatar-preset-filter="<?= htmlspecialchars((string)$groupKey, ENT_QUOTES) ?>"
|
||||
role="tab"
|
||||
aria-selected="<?= $groupKey === 'fair' ? 'true' : 'false' ?>"
|
||||
aria-selected="<?= $groupKey === $activeAvatarPresetGroup ? 'true' : 'false' ?>"
|
||||
>
|
||||
<?= htmlspecialchars((string)$groupMeta['label'], ENT_QUOTES) ?>
|
||||
</button>
|
||||
@@ -321,7 +322,7 @@ $sectionLinks = [
|
||||
<div class="stack gap-6">
|
||||
<span class="label">Variante wählen</span>
|
||||
<?php foreach ($avatarPresetOptions as $groupKey => $groupPresets): ?>
|
||||
<div class="avatar-preset-group <?= $groupKey === 'fair' ? 'is-active' : '' ?>" data-avatar-preset-group="<?= htmlspecialchars((string)$groupKey, ENT_QUOTES) ?>">
|
||||
<div class="avatar-preset-group <?= $groupKey === $activeAvatarPresetGroup ? 'is-active' : '' ?>" data-avatar-preset-group="<?= htmlspecialchars((string)$groupKey, ENT_QUOTES) ?>">
|
||||
<div class="avatar-preset-grid">
|
||||
<?php foreach ($groupPresets as $value => $meta): ?>
|
||||
<label class="avatar-preset-card">
|
||||
|
||||
Reference in New Issue
Block a user