- removed uploading delega on company profile page;
This commit is contained in:
@@ -23,10 +23,10 @@ import FormField from '../../components/FormField';
|
|||||||
import { Button } from 'primereact/button';
|
import { Button } from 'primereact/button';
|
||||||
import BlockingOverlay from '../../components/BlockingOverlay';
|
import BlockingOverlay from '../../components/BlockingOverlay';
|
||||||
import { InputText } from 'primereact/inputtext';
|
import { InputText } from 'primereact/inputtext';
|
||||||
import FileuploadDelega from '../../components/FileuploadDelega';
|
//import FileuploadDelega from '../../components/FileuploadDelega';
|
||||||
import { Toast } from 'primereact/toast';
|
import { Toast } from 'primereact/toast';
|
||||||
import getFormatedFileSizeText from '../../helpers/getFormatedFileSizeText';
|
//import getFormatedFileSizeText from '../../helpers/getFormatedFileSizeText';
|
||||||
import { defaultMaxFileSize } from '../../configData';
|
//import { defaultMaxFileSize } from '../../configData';
|
||||||
import { Dialog } from 'primereact/dialog';
|
import { Dialog } from 'primereact/dialog';
|
||||||
import { confirmPopup, ConfirmPopup } from 'primereact/confirmpopup';
|
import { confirmPopup, ConfirmPopup } from 'primereact/confirmpopup';
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ const ProfileCompany = () => {
|
|||||||
const infoMsgs = useRef(null);
|
const infoMsgs = useRef(null);
|
||||||
const [formInitialData, setFormInitialData] = useState({});
|
const [formInitialData, setFormInitialData] = useState({});
|
||||||
const [delegaData, setDelegaData] = useState({});
|
const [delegaData, setDelegaData] = useState({});
|
||||||
const [delega, setDelega] = useState([]);
|
//const [delega, setDelega] = useState([]);
|
||||||
const [isVisibleRemoveDialog, setIsVisibleRemoveDialog] = useState(false);
|
const [isVisibleRemoveDialog, setIsVisibleRemoveDialog] = useState(false);
|
||||||
const { delegaFirstName = '', delegaLastName = '', delegaCodiceFiscale = '' } = delegaData;
|
const { delegaFirstName = '', delegaLastName = '', delegaCodiceFiscale = '' } = delegaData;
|
||||||
const toast = useRef(null);
|
const toast = useRef(null);
|
||||||
@@ -161,11 +161,11 @@ const ProfileCompany = () => {
|
|||||||
setDelegaData(newDelegaData)
|
setDelegaData(newDelegaData)
|
||||||
}
|
}
|
||||||
|
|
||||||
const setDelegaFile = (name, value) => {
|
/*const setDelegaFile = (name, value) => {
|
||||||
setDelega(value);
|
setDelega(value);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
const getDellegaCallback = (data) => {
|
/*const getDellegaCallback = (data) => {
|
||||||
if (data.data) {
|
if (data.data) {
|
||||||
setDelega([data.data]);
|
setDelega([data.data]);
|
||||||
}
|
}
|
||||||
@@ -175,7 +175,7 @@ const ProfileCompany = () => {
|
|||||||
const errDellegaCallback = () => {
|
const errDellegaCallback = () => {
|
||||||
setDelega([]);
|
setDelega([]);
|
||||||
storeSet.main.unsetAsyncRequest();
|
storeSet.main.unsetAsyncRequest();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
const downloadDelega = () => {
|
const downloadDelega = () => {
|
||||||
storeSet.main.setAsyncRequest();
|
storeSet.main.setAsyncRequest();
|
||||||
@@ -338,14 +338,14 @@ const ProfileCompany = () => {
|
|||||||
setFormInitialData(companyData);
|
setFormInitialData(companyData);
|
||||||
}, [chosenCompanyId, companies]);
|
}, [chosenCompanyId, companies]);
|
||||||
|
|
||||||
useEffect(() => {
|
/*useEffect(() => {
|
||||||
if (formInitialData.id) {
|
if (formInitialData.id) {
|
||||||
storeSet.main.setAsyncRequest();
|
storeSet.main.setAsyncRequest();
|
||||||
CompanyService.getCompanyDelega(getDellegaCallback, errDellegaCallback, [
|
CompanyService.getCompanyDelega(getDellegaCallback, errDellegaCallback, [
|
||||||
['companyId', formInitialData.id]
|
['companyId', formInitialData.id]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}, [formInitialData])
|
}, [formInitialData])*/
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="appPage">
|
<div className="appPage">
|
||||||
@@ -516,7 +516,7 @@ const ProfileCompany = () => {
|
|||||||
? <div className="appForm__delegaForm">
|
? <div className="appForm__delegaForm">
|
||||||
<div className="appForm__delegaFormHeader">
|
<div className="appForm__delegaFormHeader">
|
||||||
<legend>{__('Compilazione Delega', 'gepafin')}</legend>
|
<legend>{__('Compilazione Delega', 'gepafin')}</legend>
|
||||||
<p className="appForm__delegaFormText">{__('Per procedere come delegato, compila il form seguente, scarica il documento della delega, fallo firmare dal rappresentante legale e ricaricalo.', 'gepafin')}</p>
|
<p className="appForm__delegaFormText">{__('Per procedere come delegato, compila il form seguente, scarica il documento della delega, fallo firmare dal rappresentante legale.', 'gepafin')}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="appForm__cols">
|
<div className="appForm__cols">
|
||||||
@@ -563,7 +563,7 @@ const ProfileCompany = () => {
|
|||||||
icon="pi pi-check" iconPos="right"/>
|
icon="pi pi-check" iconPos="right"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="appForm__field">
|
{/*<div className="appForm__field">
|
||||||
<label htmlFor="delega">
|
<label htmlFor="delega">
|
||||||
{__('Carica documento Delega Firmato', 'gepafin')}
|
{__('Carica documento Delega Firmato', 'gepafin')}
|
||||||
<span className="appForm__field--required">*</span>
|
<span className="appForm__field--required">*</span>
|
||||||
@@ -580,7 +580,7 @@ const ProfileCompany = () => {
|
|||||||
doctype="document"
|
doctype="document"
|
||||||
companyId={formInitialData.id}
|
companyId={formInitialData.id}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>*/}
|
||||||
|
|
||||||
{/*<div className="appForm__delegaFormActions">
|
{/*<div className="appForm__delegaFormActions">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user