File tree 7 files changed +188
-196
lines changed
Operation/ProposedActionsInput
7 files changed +188
-196
lines changed Original file line number Diff line number Diff line change 110
110
"proposedActions" : " Proposed Actions" ,
111
111
"proposedActionsActivities" : " Activities" ,
112
112
"priorityActionsBudget" : " Budget (CHF)" ,
113
- "proposedActionsEarlyActions" : " Early Actions" ,
114
- "priorityActionsEarlyResponse" : " Early Response" ,
115
113
"priorityActionsSubTotal" : " Sub-total" ,
116
114
"priorityActionsSurgeDeployment" : " Surge Deployment (if applicable)" ,
117
115
"priorityActionsIndirectCost" : " Indirect Cost" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 243
243
page-break-inside : avoid;
244
244
}
245
245
246
- .actions-section {
246
+ .proposed-actions {
247
247
display : grid;
248
248
grid-gap : var (--go-ui-width-separator-md );
249
- grid-template-columns : 1 fr 1 fr 1 fr 1 fr ;
249
+ grid-template-columns : 6 fr 5 fr 5 fr 4 fr ;
250
250
page-break-inside : avoid;
251
251
252
- .actions-title {
253
- display : flex;
254
- background-color : var (--pdf-element-bg );
252
+ .action-title-label {
253
+ background-color : var (--go-ui-color-element-background );
255
254
padding : var (--go-ui-spacing-sm );
256
- break-inside : avoid;
257
- font-weight : var (--go-ui-font-weight-bold );
255
+ font-weight : var (--go-ui-font-weight-semibold );
258
256
}
259
257
260
- .actions-group {
258
+ .proposed-action {
261
259
display : flex;
260
+ align-items : center;
261
+ gap : var (--go-ui-spacing-sm );
262
+ padding : var (--go-ui-spacing-md );
262
263
background-color : var (--pdf-element-bg );
263
- padding : var (--go-ui-spacing-sm );
264
- break-inside : avoid;
265
264
266
- .logo {
265
+ .proposed-action-icon {
267
266
height : 3rem ;
268
267
}
269
268
}
270
269
271
- .actions-item {
272
- display : flex;
270
+ .sector ,
271
+ .activity ,
272
+ .budget {
273
273
background-color : var (--pdf-element-bg );
274
274
padding : var (--go-ui-spacing-sm );
275
275
break-inside : avoid;
276
276
}
277
277
278
- .cost-item {
279
- display : flex;
280
- flex-direction : column;
278
+ .cost-label {
279
+ grid-column : span 3 ;
281
280
background-color : var (--pdf-element-bg );
282
281
padding : var (--go-ui-spacing-sm );
283
282
break-inside : avoid;
284
283
text-align : right;
284
+ font-weight : var (--go-ui-font-weight-semibold );
285
+ }
286
+
287
+ .cost-value {
288
+ background-color : var (--pdf-element-bg );
289
+ padding : var (--go-ui-spacing-sm );
290
+ break-inside : avoid;
285
291
}
286
292
}
287
293
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import {
31
31
type GoApiResponse ,
32
32
useRequest ,
33
33
} from '#utils/restRequest' ;
34
- import { EARLY_ACTIONS } from '#views/DrefApplicationForm/common' ;
34
+ import { EARLY_ACTION } from '#views/DrefApplicationForm/common' ;
35
35
36
36
import { type PartialDref } from '../../schema' ;
37
37
import ActivitiesInput from './ActivitiesInput' ;
@@ -139,7 +139,7 @@ function ProposedActionsInput(props: Props) {
139
139
return (
140
140
< InputSection
141
141
title = {
142
- value . proposed_type === EARLY_ACTIONS
142
+ value . proposed_type === EARLY_ACTION
143
143
? (
144
144
< div className = { styles . proposedAction } >
145
145
< img
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import {
57
57
DISASTER_FIRE ,
58
58
DISASTER_FLASH_FLOOD ,
59
59
DISASTER_FLOOD ,
60
- EARLY_ACTIONS ,
60
+ EARLY_ACTION ,
61
61
EARLY_RESPONSE ,
62
62
ONSET_SUDDEN ,
63
63
OPERATION_TIMEFRAME_IMMINENT ,
@@ -193,7 +193,7 @@ function Overview(props: Props) {
193
193
|| oldValue . proposed_action . length < 1 ? [
194
194
{
195
195
client_id : randomString ( ) ,
196
- proposed_type : EARLY_ACTIONS ,
196
+ proposed_type : EARLY_ACTION ,
197
197
} ,
198
198
{
199
199
client_id : randomString ( ) ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const SURGE_INDIRECT_COST = 5800;
35
35
export const INDIRECT_COST = 5000 ;
36
36
export const SUB_TOTAL = 75000 ;
37
37
38
- export const EARLY_ACTIONS = 1 satisfies ProposedActionOption [ 'key' ] ;
38
+ export const EARLY_ACTION = 1 satisfies ProposedActionOption [ 'key' ] ;
39
39
export const EARLY_RESPONSE = 2 satisfies ProposedActionOption [ 'key' ] ;
40
40
export const OPERATION_TIMEFRAME_IMMINENT = 45 ; // 45 days
41
41
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ import {
63
63
import Actions from './Actions' ;
64
64
import {
65
65
checkTabErrors ,
66
- EARLY_ACTIONS ,
66
+ EARLY_ACTION ,
67
67
EARLY_RESPONSE ,
68
68
OPERATION_TIMEFRAME_IMMINENT ,
69
69
TYPE_IMMINENT ,
@@ -335,7 +335,7 @@ export function Component() {
335
335
) . sort ( ( a , b ) => a . proposed_type - b . proposed_type ) : [
336
336
{
337
337
client_id : randomString ( ) ,
338
- proposed_type : EARLY_ACTIONS ,
338
+ proposed_type : EARLY_ACTION ,
339
339
} ,
340
340
{
341
341
client_id : randomString ( ) ,
You can’t perform that action at this time.
0 commit comments