feat: add telegram, max, address fields to OrderModal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,9 @@ const OrderModal = ({ order, onClose, onSaved, mode = 'edit' }) => {
|
|||||||
notes: order?.notes || '',
|
notes: order?.notes || '',
|
||||||
assigned_to: order?.assigned_to || '',
|
assigned_to: order?.assigned_to || '',
|
||||||
status: order?.status || 'новая',
|
status: order?.status || 'новая',
|
||||||
|
telegram_username: order?.telegram_username || '',
|
||||||
|
max_username: order?.max_username || '',
|
||||||
|
address: order?.address || '',
|
||||||
});
|
});
|
||||||
const [events, setEvents] = useState([]);
|
const [events, setEvents] = useState([]);
|
||||||
const [saving, setSaving] = useState(false);
|
const [saving, setSaving] = useState(false);
|
||||||
@@ -193,6 +196,18 @@ const OrderModal = ({ order, onClose, onSaved, mode = 'edit' }) => {
|
|||||||
<label htmlFor="modal-assigned" style={labelStyle}>Ответственный (email)</label>
|
<label htmlFor="modal-assigned" style={labelStyle}>Ответственный (email)</label>
|
||||||
<input id="modal-assigned" name="assigned_to" value={form.assigned_to} onChange={set} style={inputStyle} placeholder="manager@company.com" />
|
<input id="modal-assigned" name="assigned_to" value={form.assigned_to} onChange={set} style={inputStyle} placeholder="manager@company.com" />
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<label htmlFor="modal-telegram" style={labelStyle}>Telegram</label>
|
||||||
|
<input id="modal-telegram" name="telegram_username" value={form.telegram_username} onChange={set} style={inputStyle} placeholder="@username" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label htmlFor="modal-max" style={labelStyle}>Max</label>
|
||||||
|
<input id="modal-max" name="max_username" value={form.max_username} onChange={set} style={inputStyle} placeholder="@username" />
|
||||||
|
</div>
|
||||||
|
<div style={{ gridColumn: '1 / -1' }}>
|
||||||
|
<label htmlFor="modal-address" style={labelStyle}>Адрес</label>
|
||||||
|
<textarea id="modal-address" name="address" value={form.address} onChange={set} style={{ ...inputStyle, height: '60px', resize: 'vertical' }} placeholder="Улица, дом, квартира" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ marginTop: '14px' }}>
|
<div style={{ marginTop: '14px' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user