@@ -15,7 +15,11 @@ import DateField from 'https://cardstack.com/base/date';
15
15
import GlimmerComponent from ' @glimmer/component' ;
16
16
import SummaryCard from ' ../components/summary-card' ;
17
17
import SummaryGridContainer from ' ../components/summary-grid-container' ;
18
- import { Pill , BoxelButton } from ' @cardstack/boxel-ui/components' ;
18
+ import {
19
+ Pill ,
20
+ BoxelButton ,
21
+ FieldContainer ,
22
+ } from ' @cardstack/boxel-ui/components' ;
19
23
import { cn , not } from ' @cardstack/boxel-ui/helpers' ;
20
24
import Info from ' @cardstack/boxel-icons/info' ;
21
25
import AccountHeader from ' ../components/account-header' ;
@@ -54,6 +58,57 @@ const taskSource = {
54
58
name: ' CRMTask' ,
55
59
};
56
60
61
+ class EditTemplate extends Component <typeof Deal > {
62
+ <template >
63
+ <div class =' deal-form' >
64
+ <FieldContainer @ label =' Name' >
65
+ <@ fields.name />
66
+ </FieldContainer >
67
+ <FieldContainer @ label =' Account' >
68
+ <@ fields.account />
69
+ </FieldContainer >
70
+ <FieldContainer @ label =' Status' >
71
+ <@ fields.status />
72
+ </FieldContainer >
73
+ <FieldContainer @ label =' Priority' >
74
+ <@ fields.priority />
75
+ </FieldContainer >
76
+ <FieldContainer @ label =' Close Date' >
77
+ <@ fields.closeDate />
78
+ </FieldContainer >
79
+ <FieldContainer @ label =' Current Value' >
80
+ <@ fields.currentValue />
81
+ </FieldContainer >
82
+ <FieldContainer @ label =' Predicted Revenue' >
83
+ <@ fields.predictedRevenue />
84
+ </FieldContainer >
85
+ <FieldContainer @ label =' Primary Stakeholder' >
86
+ <@ fields.primaryStakeholder />
87
+ </FieldContainer >
88
+ <FieldContainer @ label =' Stakeholders' >
89
+ <@ fields.stakeholders />
90
+ </FieldContainer >
91
+ <FieldContainer @ label =' Value Breakdown' >
92
+ <@ fields.valueBreakdown />
93
+ </FieldContainer >
94
+ <FieldContainer @ label =' Health Score' >
95
+ <@ fields.healthScore />
96
+ </FieldContainer >
97
+ <FieldContainer @ label =' Event' >
98
+ <@ fields.event />
99
+ </FieldContainer >
100
+ </div >
101
+ <style scoped >
102
+ .deal-form {
103
+ display : flex ;
104
+ flex-direction : column ;
105
+ gap : var (--boxel-sp-lg );
106
+ padding : var (--boxel-sp-xl );
107
+ }
108
+ < /style >
109
+ </template >
110
+ }
111
+
57
112
class IsolatedTemplate extends Component <typeof Deal > {
58
113
get logoURL() {
59
114
// We default to account thumbnail
@@ -1161,6 +1216,7 @@ export class Deal extends CardDef {
1161
1216
},
1162
1217
});
1163
1218
1219
+ static edit = EditTemplate ;
1164
1220
static isolated = IsolatedTemplate ;
1165
1221
static fitted = FittedTemplate ;
1166
1222
}
0 commit comments