Feature: User-Geburtstag im Profil + Glückwunsch in JETZT-Welt
Settings: - Feld 'Dein Geburtstag (optional)' im Profil-Formular (Format MM-TT) - Hinweis: nur für Geburtstagsgrüße, kein Jahr nötig - profile.py: geburtstag gespeichert + Format-Validierung MM-DD JETZT-Welt wenn heute User-Geburtstag: - Greet-Text: 'Herzlichen Glückwunsch' statt Tageszeit-Gruß - Animiertes Geburtstags-Reminder-Card (confetti + cake Icons) - 'Alles Gute zum Geburtstag, [Name]!' SW by-v1028, APP_VER 1028
This commit is contained in:
parent
1328e2c4e3
commit
a4377033ec
6 changed files with 48 additions and 5 deletions
|
|
@ -1184,6 +1184,15 @@ window.Page_settings = (() => {
|
|||
placeholder="Musterstraße 1 12345 Berlin"
|
||||
style="${inputStyle};resize:vertical;font-family:inherit">${_esc(u.billing_address || '')}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<label style="display:block;font-size:var(--text-sm);font-weight:600;margin-bottom:var(--space-1)">Dein Geburtstag <span style="font-weight:400;color:var(--c-text-secondary)">(optional)</span></label>
|
||||
<input name="geburtstag" type="text" maxlength="5" placeholder="MM-TT"
|
||||
value="${_esc(u.geburtstag || '')}"
|
||||
pattern="\\d{2}-\\d{2}"
|
||||
title="Format: MM-TT, z.B. 03-15"
|
||||
style="${inputStyle}">
|
||||
<div style="font-size:var(--text-xs);color:var(--c-text-secondary);margin-top:var(--space-1)">Wird nur für Geburtstagsgrüße in der App verwendet.</div>
|
||||
</div>
|
||||
<div>
|
||||
<label style="display:block;font-size:var(--text-sm);font-weight:600;margin-bottom:var(--space-1)">Profil-Sichtbarkeit</label>
|
||||
<select name="profil_sichtbarkeit" style="${inputStyle}">${sichtbarkeitOpts}</select>
|
||||
|
|
@ -1211,6 +1220,7 @@ window.Page_settings = (() => {
|
|||
social_link: fd.social_link || '',
|
||||
profil_sichtbarkeit: fd.profil_sichtbarkeit || 'public',
|
||||
billing_address: fd.billing_address || '',
|
||||
geburtstag: fd.geburtstag || '',
|
||||
});
|
||||
Object.assign(_appState.user, updated);
|
||||
UI.modal.close?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue