Abo-Angebote: Gültigkeit überall sichtbar
Das "Angebot gültig bis" stand bisher nur in der Angebotsliste, auf der Bestellseite und in der Mail. Jetzt auch: - Admin, Formular "Neues Angebot": eigene Zeile "Angebot gültig bis TT.MM.JJJJ" in der Vorschau, in der Bestätigungsabfrage und in der Erfolgsmeldung (bei laufendem Abo nicht, dort gilt das Angebot sofort) - Kundenbereich, Abo-Karte (Seitenleiste bzw. Tab "Wartung"): Zeile "Angebot gültig bis TT.MM.JJJJ" unter dem Preis Das Datum aus dem Datumsfeld wird ohne Date-Umweg formatiert, im Portal nach Berliner Kalender (wie bisher). Nebenbei: "danach 50 €" mit geschütztem Leerzeichen, damit das € auf dem Handy nicht allein umbricht. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5eb908cb6
commit
c600118374
3 files changed
+13
-5
No files matched your search
+2
-1
@@ -803,8 +803,9 @@ function renderAboSideOffer(card, data, { ended }) {
|
||||
<h3>Wartungs-Abo</h3>
|
||||
${offer ? '<span class="kb-offer-tag">Ihr persönliches Angebot</span>' : ''}
|
||||
<p class="kb-price">${offer
|
||||
? `<strong>${euroShort(offer.monthlyPriceCents)}</strong><span>${offer.months === 1 ? 'im ersten Monat' : `pro Monat in den ersten ${offer.months} Monaten`}, danach 50 €</span>`
|
||||
? `<strong>${euroShort(offer.monthlyPriceCents)}</strong><span>${offer.months === 1 ? 'im ersten Monat' : `pro Monat in den ersten ${offer.months} Monaten`}, danach 50 €</span>`
|
||||
: '<strong>50 €</strong><span>pro Monat</span>'}</p>
|
||||
${offer?.validUntil ? `<p class="kb-offer-until">Angebot gültig bis <strong>${fmtDateShort(offer.validUntil)}</strong></p>` : ''}
|
||||
<ul class="kb-checks">${ABO_SIDE_FEATURES.map((f) => `<li>${escapeHtml(f)}</li>`).join('')}</ul>
|
||||
<button type="button" class="kb-btn-primary kb-btn-block" data-view="abo"${data.available ? '' : ' disabled'}>Abo abschließen</button>
|
||||
<p class="kb-fine">${data.available
|
||||
|
||||
Reference in new issue
Block a user