1
|
<div [formGroup]="templateForm">
|
2
|
<div class="p-fluid p-formgrid"
|
3
|
[ngClass]="{'p-grid': !dialogLayout}">
|
4
|
|
5
|
<div class="p-field"
|
6
|
*ngIf="!excludedFormControls?.includes('documentClassification')"
|
7
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
8
|
<label for="documentClassification">
|
9
|
Document Classification
|
10
|
</label>
|
11
|
<p-dropdown inputId="documentClassification"
|
12
|
[options]="documentClassificationsList"
|
13
|
optionLabel="classificationName"
|
14
|
placeholder="Select"
|
15
|
formControlName="documentClassification"
|
16
|
(onChange)="documentClassificationSelected($event.value)"
|
17
|
[showClear]="true">
|
18
|
</p-dropdown>
|
19
|
<app-validation-message [control]="templateForm.get('documentClassification')"
|
20
|
[validationMessage]="'This field is required.'"
|
21
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
22
|
</app-validation-message>
|
23
|
</div>
|
24
|
|
25
|
<div class="p-field"
|
26
|
*ngIf="!excludedFormControls?.includes('categoryName')"
|
27
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
28
|
<label for="categoryName">
|
29
|
Category Name
|
30
|
</label>
|
31
|
<p-autoComplete id="categoryName"
|
32
|
formControlName="categoryName"
|
33
|
[suggestions]="categoryNameSuggestions"
|
34
|
[forceSelection]="true"
|
35
|
(completeMethod)="autosuggestCategoryName($event)"
|
36
|
(onSelect)="categoryNameSelected($event)">
|
37
|
</p-autoComplete>
|
38
|
<app-validation-message [control]="templateForm.get('categoryName')"
|
39
|
[validationMessage]="'This field is required.'"
|
40
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
41
|
</app-validation-message>
|
42
|
</div>
|
43
|
|
44
|
<div class="p-field"
|
45
|
*ngIf="!excludedFormControls?.includes('categoryName')"
|
46
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
47
|
<label for="categoryCode">
|
48
|
Category Code
|
49
|
</label>
|
50
|
<p-autoComplete id="categoryCode"
|
51
|
formControlName="categoryCode"
|
52
|
[suggestions]="categoryCodeSuggestions"
|
53
|
[forceSelection]="true"
|
54
|
(completeMethod)="autosuggestCategoryCode($event)"
|
55
|
(onSelect)="categoryCodeSelected($event)">
|
56
|
</p-autoComplete>
|
57
|
<app-validation-message [control]="templateForm.get('categoryCode')"
|
58
|
[validationMessage]="'This field is required.'"
|
59
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
60
|
</app-validation-message>
|
61
|
</div>
|
62
|
|
63
|
<div class="p-field"
|
64
|
*ngIf="!excludedFormControls?.includes('iPowerClient')"
|
65
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
66
|
<label for="iPowerClientName">
|
67
|
iPower Client Name
|
68
|
</label>
|
69
|
<p-autoComplete id="iPowerClientName"
|
70
|
formControlName="iPowerClientName"
|
71
|
[suggestions]="iPowerClientNameSuggestions"
|
72
|
[forceSelection]="true"
|
73
|
(completeMethod)="autosuggestIPowerClientName($event)"
|
74
|
(onSelect)="iPowerClientNameSelected($event)">
|
75
|
</p-autoComplete>
|
76
|
<app-validation-message [control]="templateForm.get('iPowerClientName')"
|
77
|
[validationMessage]="'This field is required.'"
|
78
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
79
|
</app-validation-message>
|
80
|
</div>
|
81
|
|
82
|
<div class="p-field"
|
83
|
*ngIf="!excludedFormControls?.includes('iPowerClient')"
|
84
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
85
|
<label for="iPowerClientCode">
|
86
|
iPower Client Code
|
87
|
</label>
|
88
|
<p-autoComplete id="iPowerClientCode"
|
89
|
formControlName="iPowerClientCode"
|
90
|
[suggestions]="iPowerClientCodeSuggestions"
|
91
|
[forceSelection]="true"
|
92
|
(completeMethod)="autosuggestIPowerClientCode($event)"
|
93
|
(onSelect)="iPowerClientCodeSelected($event)">
|
94
|
</p-autoComplete>
|
95
|
<app-validation-message [control]="templateForm.get('iPowerClientCode')"
|
96
|
[validationMessage]="'This field is required.'"
|
97
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
98
|
</app-validation-message>
|
99
|
</div>
|
100
|
|
101
|
<div class="p-field"
|
102
|
*ngIf="!excludedFormControls?.includes('documentSubclassification')"
|
103
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
104
|
<label for="documentSubclassification">
|
105
|
Sub-Category Name
|
106
|
</label>
|
107
|
<p-dropdown inputId="documentSubclassification"
|
108
|
[options]="availableDocumentSubclassifications"
|
109
|
[disabled]="subCategoryCodeDisabled"
|
110
|
optionLabel="subclassificationName"
|
111
|
placeholder="Select a Document Classification first"
|
112
|
formControlName="documentSubclassification">
|
113
|
</p-dropdown>
|
114
|
<app-validation-message [control]="templateForm.get('documentSubclassification')"
|
115
|
[validationMessage]="'This field is required.'"
|
116
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
117
|
</app-validation-message>
|
118
|
</div>
|
119
|
|
120
|
<div class="p-field"
|
121
|
*ngIf="!excludedFormControls?.includes('abbyyTemplateCode')"
|
122
|
[ngClass]="{'p-col-12 p-lg-4': !dialogLayout}">
|
123
|
<label for="abbyyTemplateCode"
|
124
|
>
|
125
|
ABBYY Template Code
|
126
|
</label>
|
127
|
<input id="abbyyTemplateCode"
|
128
|
type="text"
|
129
|
pInputText
|
130
|
formControlName="abbyyTemplateCode">
|
131
|
<app-validation-message [control]="templateForm.get('abbyyTemplateCode')"
|
132
|
[validationMessage]="'This field is required.'"
|
133
|
[displayEvenIfPristine]="displayValidationMessagesEvenIfPristine">
|
134
|
</app-validation-message>
|
135
|
</div>
|
136
|
|
137
|
</div>
|
138
|
</div>
|