Möchtest du diese Marktdurchführung wirklich löschen?
Du kannst das nicht rückgängig machen. Bestätige durch Eingabe von DELETE.
diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 0ff59aa..f8f2b0e 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -154,7 +154,6 @@ function auth_render_markets_content(array $marketTable): string return '
Keine Durchführungstage vorhanden.
'); };"; echo " const marketEditField = (key, label, type, value, options = []) => { const current = value === null || value === undefined ? '' : String(value); const control = type === 'textarea' ? '' : type === 'select' ? '' : ''; return ''; };"; echo " const marketDeletePattern = (id, body) => 'Möchtest du diese Marktdurchführung wirklich löschen?
Du kannst das nicht rückgängig machen. Bestätige durch Eingabe von DELETE.
Marktdetails werden geladen …
'; } try { const response = await fetch('/api/market-occurrence.php?id=' + encodeURIComponent(trigger.dataset.marketOccurrenceId || ''), { credentials: 'same-origin' }); const payload = await response.json(); if (!response.ok || !payload.ok) { throw new Error(payload.error || 'Marktdetails konnten nicht geladen werden.'); } drawer.dataset.marketPayload = JSON.stringify(payload); if (title) { title.textContent = marketDrawerTitle(payload); } if (content) { content.innerHTML = renderMarketDetailWithActions(payload); applyMarketTabs(content); } } catch (error) { if (content) { content.innerHTML = '' + marketEscape(error.message) + '
'; } } contentRoot.querySelectorAll('[data-market-drawer-open]').forEach((button) => button.setAttribute('aria-expanded', String(button === trigger))); };"; echo " const restoreMarketList = () => { if (marketMobileDetailHost?.parentNode) { const drawer = marketMobileDetailHost.querySelector('[data-market-mobile-drawer]'); if (drawer) { contentRoot.appendChild(drawer); drawer.removeAttribute('data-market-mobile-drawer'); drawer.dataset.open = 'false'; drawer.setAttribute('aria-hidden', 'true'); } marketMobileDetailHost.parentNode.removeChild(marketMobileDetailHost); } marketMobileDetailHost = null; marketDetailOpen = false; document.body.classList.remove('sg-market-mobile-detail-open'); bindTable(); };"; diff --git a/public/assets/styles.portal.css b/public/assets/styles.portal.css index d8681ea..7c555ff 100644 --- a/public/assets/styles.portal.css +++ b/public/assets/styles.portal.css @@ -371,10 +371,16 @@ body.sg-lager-mobile-detail-open > :not([data-lager-mobile-detail-host]) { --layout-delete-confirmation-overlay-offset-block-start: 100px; } -.sg-card-list-page-drawer [data-market-delete-occurrence-id] > .sg-component-row { +.sg-card-list-page-drawer [data-market-delete-occurrence-id] > .sg-component-row, +.sg-card-list-page-drawer .market-delete-confirmation-card .sg-component-row { justify-content: flex-end; } +.market-delete-confirmation-card__title { + margin: 0; + color: var(--color-black); +} + .sg-card-list-page-drawer [data-component="content-group-box"] { margin-block: 0; }