- added amountAccepted field;
This commit is contained in:
@@ -72,6 +72,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
const [isVisibleCompleteDialog, setIsVisibleCompleteDialog] = useState(false);
|
const [isVisibleCompleteDialog, setIsVisibleCompleteDialog] = useState(false);
|
||||||
const [operationType, setOperationType] = useState('');
|
const [operationType, setOperationType] = useState('');
|
||||||
const [motivation, setMotivation] = useState('');
|
const [motivation, setMotivation] = useState('');
|
||||||
|
const [amountAccepted, setAmountAccepted] = useState(0);
|
||||||
const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false);
|
const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false);
|
||||||
const [allFilesRated, setAllFilesRated] = useState(false);
|
const [allFilesRated, setAllFilesRated] = useState(false);
|
||||||
const [atLeastOneChecked, setAtLeastOneChecked] = useState(false);
|
const [atLeastOneChecked, setAtLeastOneChecked] = useState(false);
|
||||||
@@ -388,7 +389,8 @@ const DomandaEditPreInstructor = () => {
|
|||||||
checklist: klona(data.checklist),
|
checklist: klona(data.checklist),
|
||||||
files: klona(data.files),
|
files: klona(data.files),
|
||||||
note: data.note,
|
note: data.note,
|
||||||
motivation
|
motivation,
|
||||||
|
amountAccepted
|
||||||
}
|
}
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
@@ -1206,6 +1208,17 @@ const DomandaEditPreInstructor = () => {
|
|||||||
footer={footerCompleteDialog}
|
footer={footerCompleteDialog}
|
||||||
style={{ maxWidth: '600px', width: '100%' }}
|
style={{ maxWidth: '600px', width: '100%' }}
|
||||||
onHide={hideCompleteDialog}>
|
onHide={hideCompleteDialog}>
|
||||||
|
<div className="appForm__field">
|
||||||
|
<label
|
||||||
|
className={classNames({ 'p-error': isEmpty(amountAccepted) || amountAccepted === 0 })}>
|
||||||
|
{__('Importo approvato', 'gepafin')}
|
||||||
|
</label>
|
||||||
|
<InputNumber
|
||||||
|
value={amountAccepted}
|
||||||
|
keyfilter="int"
|
||||||
|
invalid={isEmpty(amountAccepted) || amountAccepted === 0}
|
||||||
|
onChange={(e) => setAmountAccepted(e.value)}/>
|
||||||
|
</div>
|
||||||
<div className="appForm__field">
|
<div className="appForm__field">
|
||||||
<label>{__('Motivazione', 'gepafin')}</label>
|
<label>{__('Motivazione', 'gepafin')}</label>
|
||||||
<Editor
|
<Editor
|
||||||
|
|||||||
Reference in New Issue
Block a user