-
Notifications
You must be signed in to change notification settings - Fork 0
/
prospect_basic_info_text.html
307 lines (298 loc) · 15.3 KB
/
prospect_basic_info_text.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!-- <div fieldId="ipos-prospect:Title" layout="row" class="row breakLine" layout-margin/>
<div fieldId="ipos-prospect:FullName" layout="row" class="row breakLine" layout-margin/>
<div fieldId="ipos-prospect:BirthDate" layout="row" class="row breakLine" layout-margin/>
<div fieldId="ipos-prospect:Gender" layout="row" class="row breakLine" layout-margin/>
<div fieldId="ipos-prospect:MarStat" layout="row" class="row" layout-margin/>
<div fieldId="ipos-prospect:BusinessIndustry" layout="row" class="row breakLine" layout-margin /> -->
<div fieldId="ipos-prospect:Title" layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Title" label-value="v3.myworkspace.label.prospect.Title" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listTitle" displayText="text" displayValue="value" Prefix="" dialogTitle="Title" select-disabled="::!moduleService.isEditMode" model="variables.Title.Value"></v3-Select>
</div>
</div>
<div fieldId="ipos-prospect:FullName" layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.FullName" label-value="v3.myworkspace.label.prospect.FullName"/>
</div>
<div flex="5">
<div ng-click="toggleErrorMsg('FullName')" ng-if="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:FullName')">
<i style="color:red;" class="fa fa-exclamation-circle">
</i>
<div id="FullName" style="display:none;" class="triangle-isosceles">
<span class="error-message" v3-translate="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:FullName')"></span>
</div>
</div>
</div>
<div flex="65">
<input class="input" ng-focus="openErrorMsg('FullName')" ng-blur="closeErrorMsg('FullName');" maxlength="120" ng-model="variables.FullName.$" ng-disabled="::!moduleService.isEditMode" />
</div>
</div>
<div fieldId="ipos-prospect:BirthDate" layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.BirthDate" label-value="v3.myworkspace.label.prospect.DateofBirth"/>
</div>
<div flex="5">
<div ng-click="toggleErrorMsg('BirthDate')" ng-if="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:BirthDate')">
<i style="color:red;" class="fa fa-exclamation-circle">
</i>
<div id="BirthDate" style="display:none;" class="triangle-isosceles">
<span class="error-message" v3-translate="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:BirthDate')"></span>
</div>
</div>
</div>
<div flex="65">
<input class="input" ng-blur="closeErrorMsg('BirthDate');" ng-disabled="::!moduleService.isEditMode" ng-model="variables.BirthDate.$" placeholder="Choose Date of Birth" max-Date="today" ms-datepicker/>
</div>
</div>
<div fieldId="ipos-prospect:Gender" layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Gender" label-value="v3.myworkspace.label.prospect.Gender"/>
</div>
<div flex="5">
<div ng-click="toggleErrorMsg('Gender')" ng-if="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:Gender')">
<i style="color:red;" class="fa fa-exclamation-circle">
</i>
<div id="Gender" style="display:none;" class="triangle-isosceles">
<span class="error-message" v3-translate="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:Gender')"></span>
</div>
</div>
</div>
<div flex="65">
<v3-switch-new alway-watch="false" style="float:right;" switch-name="gender" switch-disabled="::!moduleService.isEditMode" switch-model="variables.Gender.Value" switch-options="::moduleService.listGenders">
</v3-switch-new>
</div>
</div>
<div fieldId="ipos-prospect:MarStat" layout="row" class="row" layout-margin>
<div flex="20">
<v3-label label-prop="variables.MarStat" label-value="v3.myworkspace.label.prospect.MaritalStatus"/>
</div>
<div flex="5">
</div>
<div flex="65">
<v3-switch-new alway-watch="false" style="float:right;" switch-name="MaritalStatus" switch-disabled="::!moduleService.isEditMode" switch-model="variables.MarStat.Value" switch-options="::moduleService.listMartat">
</v3-switch-new>
</div>
</div>
<div fieldId="ipos-prospect:BusinessIndustry" layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.BusinessIndustry" label-value="v3.myworkspace.label.prospect.BusinessIndustry"/>
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listBussinessIndustry" displayText="text" displayValue="value" Prefix="" dialogTitle="Business Industry" select-disabled="::!moduleService.isEditMode" model="variables.BusinessIndustry.Value" child-Model="variables.Occupation"></v3-Select>
</div>
</div>
<!-- <div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Occupation" label-value="v3.myworkspace.label.prospect.Occupation">
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listOccupation" displayText="text" displayValue="value" Prefix="" dialogTitle="Occupation" select-disabled="::!moduleService.isEditMode" filter-by="{filterName: 'filterByGroup', paras: variables.BusinessIndustry.Value}" model="variables.Occupation.Value"></v3-Select>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.ReferralType" label-value="v3.myworkspace.label.prospect.ReferralType">
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listRefType" displayText="text" displayValue="value" Prefix="" dialogTitle="Referral Type" select-disabled="::!moduleService.isEditMode" model="variables.ReferralType.Value"></v3-Select>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Referrer" label-value="v3.myworkspace.label.prospect.Referrer">
</div>
<div flex="5">
</div>
<div flex="65">
<fieldset ng-disabled="!variables.ReferralType.Value">
<input class="input" ng-disabled="::!moduleService.isEditMode" ng-model="variables.Referrer.$" value="">
</fieldset>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Race" label-value="v3.myworkspace.label.prospect.Race" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listRace" displayText="text" displayValue="value" Prefix="" dialogTitle="Race" select-disabled="::!moduleService.isEditMode" model="variables.Race.Value">
</div>
</div>
<div layout="row" class="row" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Nationality" label-value="v3.myworkspace.label.prospect.Nationality" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-select-new src-data="::moduleService.listNationality" displayText="text" displayValue="value" Prefix="" dialogTitle="Nationality" select-disabled="::!moduleService.isEditMode" model="variables.Nationality.Value">
<div layout="row" v3-when-done="highLightSelected()" ng-click="selectedValue(item.value, $index)" class="popupSelectBeakeline popupSelect f32" select-item-repeat="item in dispData">
<div flex="10" class="flag {{::item.value}} rounded-flag"></div>
<div flex="76">
<h class="popupSelectList">{{::item.text}}</h>
</div>
<div flex="10" id="select-{{::$index}}"></div>
</div>
</v3-select-new>
</div>
</div>
</div>
<div layout="row" class="header-repeat-bar">
<div flex="75" layout-margin>
<h class="repeat-toobar-text">
<span t-lazy v3-translate="v3.myworkspace.label.prospect.IDs-C" prefix=""></span>
</h>
</div>
<div flex="10">
</div>
<div flex="10">
</div>
</div>
<div class="white-card" ng-repeat="id in moduleService.iDs track by $index">
<div layout-margin>
<i class="fa fa-times fa-lg" ng-if="moduleService.iDs.length > 1" style=" float: right; margin top: 0px; color: grey;" ng-click="removeID($index)" ng-disabled="::!moduleService.isEditMode"></i>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="" label-value="v3.myworkspace.label.prospect.IDType" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-Select class="input-select" src-data="moduleService.listiDType" displayText="text" displayValue="value" Prefix="" dialogTitle="ID Type" select-disabled="::!moduleService.isEditMode" model="moduleService.findElementInElement_V3(id, ['ipos-prospect:IDType']).Value">
</div>
</div>
<fieldset ng-disabled="!moduleService.findElementInElement_V3(id, ['ipos-prospect:IDType']).Value">
<div layout="row" class="row" layout-margin>
<div flex="20">
<v3-label label-prop="" label-value="v3.myworkspace.label.prospect.IDNumber" />
</div>
<div flex="5">
</div>
<div flex="65">
<input class="input" maxlength="12" ng-model="moduleService.findElementInElement_V3(id, ['ipos-prospect:IDNumber']).$" ng-disabled="::!moduleService.isEditMode" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
</div>
</div>
</fieldset>
</div>
<div class="white-card">
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Staff" label-value="v3.myworkspace.label.prospect.Staff" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-switch-new alway-watch="false" style="float:right;" switch-name="staff" switch-disabled="::!moduleService.isEditMode" switch-model="variables.Staff.Value" switch-options="::moduleService.listStaff">
</v3-switch-new>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.Vip" label-value="v3.myworkspace.label.prospect.VIP" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-switch-new alway-watch="false" style="float:right;" switch-name="vip" switch-disabled="::!moduleService.isEditMode" switch-model="variables.Vip.Value" switch-options="::moduleService.listVip">
</v3-switch-new>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="20">
<v3-label label-prop="variables.SmokerStat" label-value="v3.myworkspace.label.prospect.SmokerStatus" />
</div>
<div flex="5">
</div>
<div flex="65">
<v3-switch-new alway-watch="false" style="float:right;" switch-name="smoker" switch-disabled="::!moduleService.isEditMode" switch-model="variables.SmokerStat.Value" switch-options="::moduleService.listSmokeStat">
</v3-switch-new>
</div>
</div>
<div layout="row" class="row breakLine" layout-margin>
<div flex="40">
<v3-label label-prop="variables.YearDrivingLicenseObtained" label-value="v3.myworkspace.label.prospect.YearDrivingLicenseObtained" />
</div>
<div flex="5">
<div ng-if="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:YearDrivingLicenseObtained')">
<i style="color:red;" ng-click="toggleErrorMsg('YearDriving')" class="fa fa-exclamation-circle">
</i>
<div id="YearDriving" style="display:none;" class="triangle-isosceles">
<span class="error-message" v3-translate="::moduleService.getErrorMessage(moduleService.errorList,'$..ipos-prospect:Prospect.ipos-prospect:Person.ipos-prospect:YearDrivingLicenseObtained')"></span>
</div>
</div>
</div>
<div flex="45">
<input ng-focus="openErrorMsg('YearDriving');" ng-blur="closeErrorMsg('YearDriving');" class="input" ng-disabled="::!moduleService.isEditMode" ng-model="variables.YearDrivingLicenseObtained.$" maxlength="4" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
</div>
</div>
<div>
<div layout="row" layout-margin ng-if="moduleService.tagList && moduleService.isEditMode">
<div flex="5" style="margin-top:8px;">
<v3-label label-prop="" label-value="v3.myworkspace.label.prospect.Tag" />
</div>
<div flex="85" style="margin-top:-8px;">
<md-chips ng-model="moduleService.tagList" md-on-append="validateTag($chip)" placeholder="Enter a tag" readonly="!moduleService.isEditMode">
<md-chip-template>
<strong>{{$chip}}</strong>
</md-chip-template>
</md-chips>
<span ng-if="tagCharError" class="error">{{tagCharError}}</span>
</div>
</div>
</div>
</div>
<div layout="row" class="header-repeat-bar">
<div flex layout-margin>
<h class="repeat-toobar-text">ATTACHMENTS</h>
</div>
</div>
<div class="white-card">
<div ng-if="moduleService.findElementInDetail_V3(['Attachments'])['@counter'] > 0">
<div layout="row" class="row breakLine" layout-margin ng-repeat="attachment in moduleService.attachments track by $index" class="tag-card">
<div flex="5">
<i align="left" class="fa fa-paperclip fa-lg"></i>
</div>
<div ng-click="moduleService.attachmentPreview(attachment['@refResourceUid'])" flex="60" style="text-align:left; color:gray;">
{{attachment.FileName.$}}
</div>
<div flex>
<div layout="row" ng-if="moduleService.isEditMode">
<div flex="40" style="text-align: right">
<i class="fa fa-edit fa-lg fa-style" ng-click="_showImgPickerEdit(attachment['@refResourceUid'])"></i>
</div>
<div flex="40" style="text-align: right">
<i class="fa fa-trash fa-lg fa-style" ng-click="_markRemoveFile(attachment['@refResourceUid'])"></i>
</div>
</div>
</div>
</div>
</div>
<div layout="row" ng-if="moduleService.tempNewResource" class="row breakLine" layout-margin ng-repeat="attachment in moduleService.tempNewResource track by $index" class="tag-card">
<div flex="5">
<i align="left" class="fa fa-paperclip fa-lg"></i>
</div>
<div ng-click="moduleService.attachmentPreview(attachment['@refResourceUid'])" flex="60" style="text-align:left; color:gray;">
{{attachment.FileName}}
</div>
<div flex>
<div layout="row">
<div flex="40" style="text-align: right">
</div>
<div flex="40" style="text-align: right">
<i class="fa fa-trash fa-lg fa-style" ng-click="removeTempFile($index)"></i>
</div>
</div>
</div>
</div> -->