UX: Neue Rechnung — Hinweis 'nicht für Abos', neutraler Placeholder, passender Notiz-Default (SW by-v979)

This commit is contained in:
rene 2026-05-15 13:56:13 +02:00
parent 49e01683ad
commit 04d8ed153b
4 changed files with 13 additions and 5 deletions

View file

@ -3884,6 +3884,14 @@ window.Page_admin = (() => {
body: `
<form id="${id}" style="display:flex;flex-direction:column;gap:var(--space-3)">
${!isEdit && !p.recipient_name ? `
<div style="padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);
background:#fff8f0;border:1px solid #f0a060;
font-size:var(--text-xs);color:#c05000;line-height:1.6">
Diese Rechnung ist für <strong>sonstige Leistungen</strong> (Beratung, Einmalleistung etc.).<br>
Für Abo-Verlängerungen bitte den Button <strong>Rechnung erstellen"</strong> in der Upgrades-Liste verwenden.
</div>` : ''}
<!-- Empfänger -->
<div style="display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)">
<div>
@ -3912,7 +3920,7 @@ window.Page_admin = (() => {
<div>
<label class="form-label" style="font-size:var(--text-xs)">Leistungszeitraum <span style="color:var(--c-text-muted)">(optional)</span></label>
<input class="form-control" name="service_period" type="text"
placeholder="z.B. 12 Monate ab Rechnungsdatum"
placeholder="z.B. 15.05.2026 oder einmalige Leistung"
value="${_esc(p.service_period || '')}">
</div>
@ -3948,7 +3956,7 @@ window.Page_admin = (() => {
<label class="form-label" style="font-size:var(--text-xs)">Notizen <span style="color:var(--c-text-muted)">(optional)</span></label>
<textarea class="form-control" name="notes" rows="2"
style="resize:vertical;font-family:inherit"
placeholder="Interne Notiz / Zahlungshinweis">${_esc(p.notes || '')}</textarea>
placeholder="Interne Notiz / Zahlungshinweis">${_esc(p.notes || (!isEdit && !p.recipient_name ? 'Zahlbar innerhalb von 14 Tagen ab Rechnungsdatum.' : ''))}</textarea>
</div>
</form>