- page benficiary domanda/soccorso;

- fixed fetching data in overview tables for beneficiary/pre instructor;
- fixed styles;
This commit is contained in:
Vitalii Kiiko
2024-11-07 16:19:09 +01:00
parent 8ae4b720e5
commit 5e44b1f268
18 changed files with 1045 additions and 264 deletions

View File

@@ -61,8 +61,8 @@ const SoccorsoEditPreInstructor = () => {
newData.formFields = data.formFields;
newData.responseDays = 10;
newData.note = '';
newData.sendNotification = true;
newData.sendEmail = true;
newData.isSendNotification = true;
newData.isSendEmail = true;
return newData;
};
@@ -139,7 +139,7 @@ const SoccorsoEditPreInstructor = () => {
const entityId = !isNaN(parsed) ? parsed : 0;
storeSet.main.setAsyncRequest();
AmendmentsService.getSoccorsoByApplId(entityId, getCallback, errGetCallback);
AmendmentsService.getSoccorsoByApplEvalId(entityId, getCallback, errGetCallback);
}, [evaluationId]);
return (
@@ -184,7 +184,7 @@ const SoccorsoEditPreInstructor = () => {
<div className="appPageSection columns">
<div>
<h3>{__('Note', 'gepafin')}</h3>
<div>
<div style={{marginBottom: '30px'}}>
<Editor
value={formData.note}
placeholder={__('Digita qui il messagio', 'gepafin')}
@@ -198,7 +198,7 @@ const SoccorsoEditPreInstructor = () => {
</div>
<h3>{__('Tempo per la Risposta (giorni)', 'gepafin')}</h3>
<div>
<div style={{marginBottom: '30px'}}>
<InputNumber
keyfilter="int"
value={formData.responseDays}
@@ -215,20 +215,20 @@ const SoccorsoEditPreInstructor = () => {
<div className="appForm__field row">
<InputSwitch
inputId="notify_email"
checked={formData.sendEmail}
checked={formData.isSendEmail}
onChange={(e) => updateEvaluationValue(
e.value,
'sendEmail'
'isSendEmail'
)}/>
<label htmlFor="notify_email">{__('Notifiche Email', 'gepafin')}</label>
</div>
<div className="appForm__field row">
<InputSwitch
inputId="notify_push"
checked={formData.sendNotification}
checked={formData.isSendNotification}
onChange={(e) => updateEvaluationValue(
e.value,
'sendNotification'
'isSendNotification'
)}/>
<label htmlFor="notify_push">{__('Notifiche Push', 'gepafin')}</label>
</div>