Skip to content

Commit ef8dd81

Browse files
authored
Merge pull request #1852 from IFRCGo/fix/hot-fix-dref-super-ticket
Hotfix: Dref superticket
2 parents fafbfdd + 215030a commit ef8dd81

File tree

7 files changed

+39
-4
lines changed

7 files changed

+39
-4
lines changed

.changeset/tame-peas-turn.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Update DREF forms
6+
7+
- Move Response strategy description from placeholder to below the input
8+
- Add DREF allocation field in event details for the Loan type Ops. update form

app/src/views/DrefApplicationForm/Operation/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,12 +696,12 @@ function Operation(props: Props) {
696696
/>
697697
</InputSection>
698698
<InputSection
699-
description={!plannedBudgetMatchRequestedAmount && (
699+
description={!plannedBudgetMatchRequestedAmount ? (
700700
<div className={styles.warning}>
701701
<ErrorWarningFillIcon className={styles.icon} />
702702
{strings.drefFormResponseTotalAmountOfPlannedBudget}
703703
</div>
704-
)}
704+
) : <div />}
705705
>
706706
<div className={styles.interventionSelectionContainer}>
707707
<SelectInput

app/src/views/DrefFinalReportForm/Operation/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function Operation(props: Props) {
242242
onChange={setFieldValue}
243243
value={value.response_strategy}
244244
error={error?.response_strategy}
245-
placeholder={strings.drefFormResponseRationalePlaceholder}
245+
hint={strings.drefFormResponseRationalePlaceholder}
246246
disabled={disabled}
247247
/>
248248
</InputSection>

app/src/views/DrefOperationalUpdateForm/EventDetail/i18n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"drefOperationalUpdateSummaryAreYouChangingTargetPopulation": "Are you changing the target population of the operation",
88
"drefOperationalUpdateSummaryAreYouChangingGeographicalLocation": "Are you changing the geographical location",
99
"drefOperationalUpdateSummaryAreYouChangingBudget": "Are you making changes to the budget",
10+
"drefOperationalUpdateAllocationSoFarForTypeLoan": "Budget Allocated so far",
1011
"drefOperationalUpdateSummaryRequestForSecondAllocation": "Are you requesting an additional allocation?",
1112
"drefOperationalUpdateEventMaterialize": "Has the forecasted event materialize?",
1213
"drefOperationalUpdateEventMaterializeExplain": "Please explain how is the operation is transitioning from Anticipatory to Response",

app/src/views/DrefOperationalUpdateForm/EventDetail/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,21 @@ function EventDetail(props: Props) {
366366
{/* NOTE: Empty div to preserve the layout */}
367367
<div />
368368
</InputSection>
369+
{value.type_of_dref === TYPE_LOAN && (
370+
<Container>
371+
<InputSection
372+
title={strings.drefOperationalUpdateAllocationSoFarForTypeLoan}
373+
>
374+
<NumberInput
375+
name="total_dref_allocation"
376+
value={value?.total_dref_allocation}
377+
onChange={setFieldValue}
378+
error={error?.total_dref_allocation}
379+
disabled={disabled}
380+
/>
381+
</InputSection>
382+
</Container>
383+
)}
369384
{value.type_of_dref !== TYPE_LOAN && (
370385
<InputSection
371386
title={

app/src/views/DrefOperationalUpdateForm/Operation/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function Operation(props: Props) {
289289
onChange={setFieldValue}
290290
value={value.response_strategy}
291291
error={error?.response_strategy}
292-
placeholder={strings.drefFormResponseRationalePlaceholder}
292+
hint={strings.drefFormResponseRationalePlaceholder}
293293
disabled={disabled}
294294
/>
295295
</InputSection>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parent": "000033-1748942208005.json",
3+
"actions": [
4+
{
5+
"action": "add",
6+
"key": "drefOperationalUpdateAllocationSoFarForTypeLoan",
7+
"namespace": "drefOperationalUpdateForm",
8+
"value": "Budget Allocated so far"
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)