asdasd
All checks were successful
Deploy / deploy (push) Successful in 59s

This commit is contained in:
2026-07-27 23:13:05 +02:00
parent 280251cae0
commit 5043b83118
2 changed files with 46 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
$app = app();
$vm = \App\AccountPages::dashboard($app);
extract($vm, EXTR_OVERWRITE);
$avatarPlaceholder = 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Crect width=%2212%22 height=%2212%22 fill=%22%23f7efe6%22/%3E%3C/svg%3E';
$editing = isset($editEvent) && $editEvent !== null;
$actionEvent = $editing ? 'event_update' : 'event_add';
$startVal = $editEvent ? date('Y-m-d\TH:i', strtotime((string)$editEvent['starts_at'])) : '';
@@ -343,11 +344,14 @@ $sectionLinks = [
>
<span class="avatar-component-card__thumb">
<img
src="<?= htmlspecialchars((string)$choice['image'], ENT_QUOTES) ?>"
src="<?= htmlspecialchars($avatarPlaceholder, ENT_QUOTES) ?>"
alt="<?= htmlspecialchars((string)$choice['label'], ENT_QUOTES) ?>"
data-avatar-option-thumb
data-avatar-option-src="<?= htmlspecialchars((string)$choice['image'], ENT_QUOTES) ?>"
data-avatar-option-field="<?= htmlspecialchars((string)$field, ENT_QUOTES) ?>"
data-avatar-option-value="<?= htmlspecialchars((string)$choice['value'], ENT_QUOTES) ?>"
loading="lazy"
decoding="async"
>
</span>
<span class="avatar-component-card__label"><?= htmlspecialchars((string)$choice['label'], ENT_QUOTES) ?></span>
@@ -593,7 +597,10 @@ $sectionLinks = [
btn.addEventListener('click', () => {
const id = btn.getAttribute('data-modal-open');
const modal = document.getElementById(id);
if (modal) modal.classList.add('open');
if (modal) {
modal.classList.add('open');
document.dispatchEvent(new CustomEvent('pkt:modal-open', { detail: { id } }));
}
});
});
document.querySelectorAll('[data-modal-close]').forEach(btn => {
@@ -759,7 +766,10 @@ $sectionLinks = [
<?php if ($editing): ?>
(function(){
const modal = document.getElementById('modalEvent');
if (modal) { modal.classList.add('open'); }
if (modal) {
modal.classList.add('open');
document.dispatchEvent(new CustomEvent('pkt:modal-open', { detail: { id: 'modalEvent' } }));
}
})();
<?php endif; ?>