feat: add item_description field to offer items editor (matches PHP)

This commit is contained in:
BOHA
2026-03-24 07:53:08 +01:00
parent 34134c0e07
commit a866384f08

View File

@@ -130,7 +130,9 @@ function SortableItemRow({ item, index, currency, readOnly, canDelete, onUpdate,
<td style={{ textAlign: 'center', color: 'var(--text-tertiary)' }}>{index + 1}</td>
<td>
<input type="text" value={item.description} onChange={e => onUpdate('description', e.target.value)}
className="admin-form-input" placeholder="Název položky" readOnly={readOnly} />
className="admin-form-input" placeholder="Název položky" readOnly={readOnly} style={{ marginBottom: '0.25rem', fontWeight: 500 }} />
<input type="text" value={item.item_description} onChange={e => onUpdate('item_description', e.target.value)}
className="admin-form-input" placeholder="Podrobný popis (volitelný)" readOnly={readOnly} style={{ fontSize: '0.8rem', opacity: 0.8 }} />
</td>
<td>
<input type="number" value={item.quantity} onChange={e => onUpdate('quantity', parseFloat(e.target.value) || 0)}