Dateien nach "frontend/src/tools" hochladen

This commit is contained in:
2026-05-26 08:58:32 +02:00
parent ee19b13461
commit 9b196ec3be

View File

@@ -151,17 +151,22 @@ function BestellungDetail({ id, toast, onBack }) {
border:`1px solid ${!!order.bezahlt?'rgba(192,132,252,0.25)':'rgba(255,255,255,0.07)'}`,
borderRadius:10}}>
<button onClick={toggleBezahlt} style={{
background:order.bezahlt?BEZAHLT.bg:'rgba(255,255,255,0.05)',
border:`1px solid ${order.bezahlt?BEZAHLT.color+'55':'rgba(255,255,255,0.12)'}`,
background:!!order.bezahlt?BEZAHLT.bg:'rgba(255,255,255,0.05)',
border:`1px solid ${!!order.bezahlt?BEZAHLT.color+'55':'rgba(255,255,255,0.12)'}`,
borderRadius:20,padding:'5px 14px',
color:order.bezahlt?BEZAHLT.color:'rgba(255,255,255,0.45)',
color:!!order.bezahlt?BEZAHLT.color:'rgba(255,255,255,0.45)',
fontFamily:'monospace',fontSize:11,cursor:'pointer',
}}>
{order.bezahlt?'💜 Als bezahlt markiert':'○ Als bezahlt markieren'}
{!!order.bezahlt?'💜 Bezahlt':'○ Als bezahlt markieren'}
</button>
{!!order.bezahlt && order.bezahlt_am && (
<div style={{color:BEZAHLT.color,fontFamily:'monospace',fontSize:12,marginTop:6}}>
Bezahlt am {new Date(order.bezahlt_am).toLocaleDateString('de-DE',{day:'2-digit',month:'2-digit',year:'numeric'})}
</div>
)}
{!!order.bezahlt && (
<div style={{color:'rgba(192,132,252,0.65)',fontFamily:'monospace',fontSize:11,marginTop:8}}>
🔒 Bezahlte Bestellungen können nicht mehr bearbeitet werden.
<div style={{color:'rgba(192,132,252,0.5)',fontFamily:'monospace',fontSize:11,marginTop:4}}>
🔒 Bearbeitung gesperrt.
</div>
)}
</div>
@@ -205,16 +210,11 @@ function BestellungDetail({ id, toast, onBack }) {
{order && !editMode && (
<>
{(order.bemerkung || order.bezahlt) && (
{order.bemerkung ? (
<div style={{...S.card,marginBottom:10,padding:'10px 14px'}}>
{!!order.bezahlt && (
<div style={{color:BEZAHLT.color,fontFamily:'monospace',fontSize:11,marginBottom:order.bemerkung?6:0}}>
💜 Bezahlt am {new Date(order.bezahlt_am).toLocaleDateString('de-DE',{day:'2-digit',month:'2-digit',year:'numeric'})}
<div style={{color:'rgba(255,255,255,0.45)',fontFamily:'monospace',fontSize:12,lineHeight:1.6}}>{order.bemerkung}</div>
</div>
)}
{order.bemerkung && <div style={{color:'rgba(255,255,255,0.45)',fontFamily:'monospace',fontSize:12,lineHeight:1.6}}>{order.bemerkung}</div>}
</div>
)}
) : null}
{/* Positionen */}
<div style={{...S.card,marginBottom:10}}>