diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index 4316457..7e742fa 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -334,6 +334,14 @@ const DomandaEditInstructorManager = () => { setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'ALTRE_GARANZIE' })); setIsVisiblePreTecEvalDialog(true); } + }, + { + label: __('Blue Tongue', 'gepafin'), + icon: 'pi pi-pen-to-square', + command: () => { + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'BLUE_TONGUE' })); + setIsVisiblePreTecEvalDialog(true); + } } ] @@ -1895,7 +1903,6 @@ const DomandaEditInstructorManager = () => { value={!isEmpty(data.amountAccepted) && data.amountAccepted > 0 ? data.amountAccepted : data.amountRequested} maxFractionDigits={2} readOnly={!isEmpty(data.amountAccepted) && data.amountAccepted > 0} - keyfilter="int" invalid={!finalDialogData.amount || isEmpty(finalDialogData.amount) || finalDialogData.amount === 0} onChange={(e) => updateFinalDialogData(e.value, 'amount')}/> : null} @@ -2125,106 +2132,6 @@ const DomandaEditInstructorManager = () => { } - - {/* - This functionality has been moved - */} - {/* - - - {__('Oggetto', 'gepafin')}* - - updateContractFormData(e.target.value, 'subject')}/> - - - - {__('Testo', 'gepafin')}* - - - updateContractFormData(e.htmlValue, 'text')} - style={{ height: 80 * 3, width: '100%' }} - /> - - - - - {__('Files', 'gepafin')}* - - o.code).join(',')} - maxFileSize={defaultMaxFileSize} - auto={false} - customUpload={true} - className={classNames({ 'p-invalid': !contractFormData.files || isEmpty(contractFormData.files) })} - onSelect={(e) => { - updateContractFormData(e.files, 'files'); - }} - onRemove={(e) => { - const updatedFiles = contractFormFilesRef.current.getFiles(); - updateContractFormData(updatedFiles, 'files'); - }} - headerTemplate={(options) => { - const { chooseButton } = options; - return ( - - {chooseButton} - - ); - }} - chooseOptions={{ - label: __('Aggiungi i file', 'gepafin'), - icon: 'pi pi-plus' - }} - itemTemplate={(file, props) => { - return ( - - - - {file.name} - - {getFormatedFileSizeText(file.size)} - - - props.onRemove()} - /> - - - ) - }} - emptyTemplate={{__('Trascina i file qua')}} - /> - - */} : <>
{__('Trascina i file qua')}