Merge branch 'develop' into feature/92-notifications
This commit is contained in:
@@ -97,7 +97,14 @@ const AllBandiTable = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const statusFilterTemplate = (options) => {
|
const statusFilterTemplate = (options) => {
|
||||||
return <Dropdown value={options.value} options={statuses} onChange={(e) => options.filterCallback(e.value, options.index)} itemTemplate={statusItemTemplate} placeholder={translationStrings.selectOneLabel} className="p-column-filter" showClear />;
|
return <Dropdown
|
||||||
|
value={options.value}
|
||||||
|
options={statuses}
|
||||||
|
onChange={(e) => options.filterCallback(e.value, options.index)}
|
||||||
|
itemTemplate={statusItemTemplate}
|
||||||
|
placeholder={translationStrings.selectOneLabel}
|
||||||
|
className="p-column-filter"
|
||||||
|
showClear />;
|
||||||
};
|
};
|
||||||
|
|
||||||
const statusItemTemplate = (option) => {
|
const statusItemTemplate = (option) => {
|
||||||
@@ -139,4 +146,4 @@ const AllBandiTable = () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default AllBandiTable;
|
export default AllBandiTable;
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import { Button } from 'primereact/button';
|
|||||||
// i18n
|
// i18n
|
||||||
import translationStrings from '../../../../translationStringsForComponents';
|
import translationStrings from '../../../../translationStringsForComponents';
|
||||||
|
|
||||||
|
const REACT_APP_HUB_ID = process.env.REACT_APP_HUB_ID;
|
||||||
|
|
||||||
const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
|
const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
|
||||||
const chosenCompanyId = useStore().main.chosenCompanyId();
|
const chosenCompanyId = useStore().main.chosenCompanyId();
|
||||||
const isAsyncRequest = useStore().main.isAsyncRequest();
|
const isAsyncRequest = useStore().main.isAsyncRequest();
|
||||||
@@ -182,11 +184,13 @@ const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
|
|||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
{renderHtmlContent(data.descriptionShort)}
|
{renderHtmlContent(data.descriptionShort)}
|
||||||
<p>{__('Scadenza', 'gepafin')}: {getDateFromISOstring(data.dates[1])}</p>
|
<p>{__('Scadenza', 'gepafin')}: {getDateFromISOstring(data.dates[1])}</p>
|
||||||
{!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && !data.confidi
|
{!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && (!data.confidi
|
||||||
|
|| (data.confidi && data.id === 6 && REACT_APP_HUB_ID === 'p4lk3bcx1RStqTaIVVbXs'))
|
||||||
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
||||||
{__('Partecipa', 'gepafin')}
|
{__('Partecipa', 'gepafin')}
|
||||||
</Button> : null}
|
</Button> : null}
|
||||||
{!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
|
{!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
|
||||||
|
&& (data.id !== 6 || (data.id === 6 && REACT_APP_HUB_ID !== 'p4lk3bcx1RStqTaIVVbXs'))
|
||||||
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
||||||
{__('Mostra', 'gepafin')}
|
{__('Mostra', 'gepafin')}
|
||||||
</Button> : null}
|
</Button> : null}
|
||||||
@@ -229,4 +233,4 @@ const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default AllBandiAccordion;
|
export default AllBandiAccordion;
|
||||||
|
|||||||
@@ -116,7 +116,16 @@ const BandoViewBeneficiario = () => {
|
|||||||
|
|
||||||
const submitApplication = () => {
|
const submitApplication = () => {
|
||||||
if (data.confidi) {
|
if (data.confidi) {
|
||||||
displayConfidiPopup();
|
if (data.id === 6 && REACT_APP_HUB_ID === 'p4lk3bcx1RStqTaIVVbXs') {
|
||||||
|
if (applicationObj && applicationObj.id) {
|
||||||
|
navigate(`/imieibandi/${applicationObj.id}`);
|
||||||
|
} else {
|
||||||
|
const bandoId = getBandoId();
|
||||||
|
ApplicationService.createApplication(bandoId, {}, createApplCallback, errCreateApplCallback, [['companyId', chosenCompanyId]]);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
displayConfidiPopup();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE') {
|
if (REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE') {
|
||||||
const bandoId = getBandoId();
|
const bandoId = getBandoId();
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
{data.formFields.map((o, i) => {
|
{data.formFields.map((o, i) => {
|
||||||
return <FormField
|
return <FormField
|
||||||
key={o.fieldId}
|
key={o.fieldId}
|
||||||
disabled={data.status === 'CLOSE' || data.status === 'AWAITING'}
|
disabled={['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
type="fileupload"
|
type="fileupload"
|
||||||
setDataFn={setValue}
|
setDataFn={setValue}
|
||||||
saveFormCallback={doUpdateAmendment}
|
saveFormCallback={doUpdateAmendment}
|
||||||
@@ -470,10 +470,10 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<div className="appPageSection">
|
<div className="appPageSection">
|
||||||
<h3>{__('Notes', 'gepafin')}</h3>
|
<h3>{__('Notes', 'gepafin')}</h3>
|
||||||
<div style={{ marginBottom: '30px', width: '100%', position: 'relative' }}>
|
<div style={{ marginBottom: '30px', width: '100%', position: 'relative' }}>
|
||||||
<BlockingOverlay shouldDisplay={data.status === 'CLOSE' || data.status === 'AWAITING'}/>
|
<BlockingOverlay shouldDisplay={['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}/>
|
||||||
<Editor
|
<Editor
|
||||||
value={data.amendmentNotes}
|
value={data.amendmentNotes}
|
||||||
readOnly={data.status === 'CLOSE' || data.status === 'AWAITING'}
|
readOnly={['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
placeholder={__('Digita qui il messagio', 'gepafin')}
|
placeholder={__('Digita qui il messagio', 'gepafin')}
|
||||||
headerTemplate={header}
|
headerTemplate={header}
|
||||||
onTextChange={(e) => updateNewAmendmentData(
|
onTextChange={(e) => updateNewAmendmentData(
|
||||||
@@ -485,7 +485,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
</div>
|
</div>
|
||||||
<FormField
|
<FormField
|
||||||
type="fileupload"
|
type="fileupload"
|
||||||
disabled={data.status === 'CLOSE' || data.status === 'AWAITING'}
|
disabled={['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
setDataFn={setValue}
|
setDataFn={setValue}
|
||||||
saveFormCallback={doUpdateAmendment}
|
saveFormCallback={doUpdateAmendment}
|
||||||
fieldName="amendmentDocuments"
|
fieldName="amendmentDocuments"
|
||||||
@@ -513,7 +513,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={sendReminder}
|
onClick={sendReminder}
|
||||||
disabled={isLoadingReminding || data.status === 'CLOSE'}
|
disabled={isLoadingReminding || ['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
outlined
|
outlined
|
||||||
label={__('Invia Sollecito', 'gepafin')}
|
label={__('Invia Sollecito', 'gepafin')}
|
||||||
icon="pi pi-send"
|
icon="pi pi-send"
|
||||||
@@ -521,7 +521,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openExtendResponseTimeDialog}
|
onClick={openExtendResponseTimeDialog}
|
||||||
disabled={isLoadingExtendingTime || data.status === 'CLOSE'}
|
disabled={isLoadingExtendingTime || ['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
outlined
|
outlined
|
||||||
label={__('Estendi Scadenza', 'gepafin')}
|
label={__('Estendi Scadenza', 'gepafin')}
|
||||||
icon="pi pi-stopwatch"
|
icon="pi pi-stopwatch"
|
||||||
@@ -529,13 +529,13 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => doUpdateAmendment()}
|
onClick={() => doUpdateAmendment()}
|
||||||
disabled={isAsyncRequest || data.status === 'CLOSE' || data.status === 'AWAITING'}
|
disabled={isAsyncRequest || ['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
label={__('Salva bozza', 'gepafin')}
|
label={__('Salva bozza', 'gepafin')}
|
||||||
icon="pi pi-save" iconPos="right"/>
|
icon="pi pi-save" iconPos="right"/>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openCloseAmendmentDialog}
|
onClick={openCloseAmendmentDialog}
|
||||||
disabled={isAsyncRequest || data.status === 'CLOSE'}
|
disabled={isAsyncRequest || ['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
||||||
icon="pi pi-times" iconPos="right"/>
|
icon="pi pi-times" iconPos="right"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -557,7 +557,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
</label>
|
</label>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
keyfilter="int"
|
keyfilter="int"
|
||||||
disabled={data.status === 'CLOSE'}
|
disabled={['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
value={extendedTime}
|
value={extendedTime}
|
||||||
showButtons
|
showButtons
|
||||||
onChange={(e) => setExtendedTime(e.value)}/>
|
onChange={(e) => setExtendedTime(e.value)}/>
|
||||||
@@ -577,7 +577,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
||||||
<Editor
|
<Editor
|
||||||
value={internalNote}
|
value={internalNote}
|
||||||
readOnly={data.status === 'CLOSE'}
|
readOnly={['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
placeholder={__('Digita qui il messagio', 'gepafin')}
|
placeholder={__('Digita qui il messagio', 'gepafin')}
|
||||||
headerTemplate={header}
|
headerTemplate={header}
|
||||||
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
||||||
@@ -591,4 +591,4 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SoccorsoEditPreInstructor;
|
export default SoccorsoEditPreInstructor;
|
||||||
|
|||||||
Reference in New Issue
Block a user