summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-reports/modal/report-wizard-col-edit.html
blob: 3aadf27ebaf7857c35d69e2e9980908a27711b03 (plain)
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
<style>
#columnEditTable table tbody td {
	border: none;
}

#columnEditTable table tbody tr {
	border: none;
}


</style>

<div class="b2b-modal-header">
	<h2 id="myModalLabel" modal-title="">Report Column - Edit</h2>
	<div class="corner-button in">
		<button type="button" class="close" aria-label="Close"
			ng-click="$dismiss('cancel')"></button>
	</div>
</div>
<div class="b2b-modal-body">
		<div ng-show="processingData" class="span loader-container">
			<i class="icon-primary-spinner" role="img"
				aria-label="Please wait while we load your content"></i>
		</div>
	
		<div id="columnEditTable" ng-hide="processingData">
			<table class="striped">
				<tbody>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Column ID:</td>
						<td>{{colInfo.colId}}</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Column Name:</td>
						<td>{{colInfo.colName}}</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Depends on formfield:</td>
						<td><input type="text" name="dependsOnFF"
							ng-model="colInfo.depeondsOnForField" class="colTableInput"></td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Datatype:</td>
						<td>
							<select id="dataTypeDD" name="dataTypeDD" aria-describedby="dataTypeDD" b2b-dropdown placeholder-text="Select Data Type" ng-model="colInfo.dataType">
					            <option b2b-dropdown-list option-repeat="d in dataTypeOptions" value="{{d.value}}">{{d.text}}</option>
					        </select>
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Group By Pos:</td>
						<td>
							<input type="text" name="groupByPos" ng-model="colInfo.groupByPos" class="colTableInput">
						</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Custom Text for Sub-Total:</td>
						<td><input type="text" name="subTotalCus"
							ng-model="colInfo.subTotalCustomText" class="colTableInput"></td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Hide Repeated Values:</td>
						<td>
							<label for="noWrap" class="checkbox">		
								<input id="hideFormFieldsRun" type="checkbox" ng-model="colInfo.hideRepeatedKey" />	<i class="skin"></i>
							</label>	
						</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Multi Group Column Level:</td>
						<td>
							<select id="mgcLevel" name="mgcLevel" aria-describedby="mgcLevel" b2b-dropdown placeholder-text="Select Level" ng-model="colInfo.level">
					            <option b2b-dropdown-list option-repeat="d in multiGroupColLevel" value="{{d.value}}">{{d.text}}</option>
					        </select>						
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Multi group Column Range : Colspan:</td>
						<td>
							<input type="text" name="colSpan" ng-model="colInfo.colspan" class="colTableInput">
						</td>
					</tr>					
					<!-- <tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Dataformat:</td>
						<td>
							<select id="mgcLevel" name="mgcLevel" aria-describedby="mgcLevel" b2b-dropdown placeholder-text="Select Level" ng-model="colInfo.level">
					            <option b2b-dropdown-list option-repeat="d in multiGroupColLevel" value="{{d.value}}">{{d.text}}</option>
					        </select>						
					    </td>
					</tr> -->
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Display Name:</td>
						<td>
							<input type="text" name="colSpan" ng-model="colInfo.displayName" class="colTableInput">
						</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Display Width (In Pxls):</td>
						<td>
							<input type="text" id="displayWidth" name="displayWidth" ng-model="colInfo.displayWidth" class="colTableInput">
						</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">No Wrap ?:</td>
						<td>
							<label for="noWrap" class="checkbox">		
								<input id="noWrap" type="checkbox" ng-model="colInfo.noWrap" /><i class="skin"></i>
							</label>
						</td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Indent Parameter to display value:</td>
						<td>
							<select id="indentPara" name="indentPara" aria-describedby="indentPara" b2b-dropdown placeholder-text="Select Indent" ng-model="colInfo.indentation">
					            <option b2b-dropdown-list option-repeat="d in indentValues" value="{{d.value}}">{{d.text}}</option>
					        </select>							
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Display Alignment:</td>
						<td>
							<select id="displayAlign" name="displayAlign" aria-describedby="displayAlign" b2b-dropdown placeholder-text="Select Display Alignment" ng-model="colInfo.displayAlignment">
					            <option b2b-dropdown-list option-repeat="d in displayAlignmentOptions" value="{{d.value}}">{{d.text}}</option>
					        </select>						
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Display Header Alignment:</td>
						<td>
							<select id="displayHAlign" name="displayHAlign" aria-describedby="displayAlign" b2b-dropdown placeholder-text="Select Display Header Alignment" ng-model="colInfo.displayHeaderAlignment">
					            <option b2b-dropdown-list option-repeat="d in displayAlignmentOptions" value="{{d.value}}">{{d.text}}</option>
					        </select>						
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Sortable:</td>
						<td>
							<label for="sortable" class="checkbox">					
								<input id="sortable" type="checkbox" ng-model="colInfo.sortable" /><i class="skin"></i>				
							</label>		
					    </td>
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Visible:</td>
						<td>
						   <label for="visibleCheck" class="checkbox">					
								<input id="visibleCheck" type="checkbox" ng-model="colInfo.visible" /><i class="skin"></i>
							</label>						
					    </td>	
					</tr>
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Drill-down Link:	<a href="javascript:void(0);" ng-click="getDrillReportFormField(colInfo.drilldownURL,colInfo.drilldownParams)"><span class="icon-misc-pen" ></span></a></td>
						<td id="drilldownOption">
							<select name="drillDown" b2b-dropdown ng-model="colInfo.drilldownURL">
								<option b2b-dropdown-list option-repeat="d in drilldownReports" value="{{d.id}}">{{d.name}}</option>
							</select>					
						</td>						
					</tr> 
					
					<tr ng-hide="!isEditCol">
						<td class="colTableLeftColumn">Total for the column:</td>
						<td id="totalForTheCol">
							<select name="totalForTheCol" b2b-dropdown ng-model="colInfo.displayTotal" placeholder-text="Select">
								<option b2b-dropdown-list option-repeat="d in totalForTheColList" 	value="{{d.id}}">{{d.name}}</option>
							</select>
						</td>
					</tr> 
					<tr >
						<table class="striped" ng-repeat="ff in drilDownFormField" ng-init="outerIndex=$index" ng-show="!isEditCol">
							<thead> 
								<tr>
									<th>{{ff.name}}</th>
									<th></th>
								</tr>
							</thead>
							<tbody type="body" ng-repeat="dd in drilDownValues[$index]" ng-init="innerIndex=$index">
								<tr>
									<td>
										<label for="{{dd.radioGroup}}" class="radio">
							                <input type="radio" ng-model="selectedDrillReportFormField[outerIndex]"  id="{{dd.radioGroup}}" name="optionsRadio{{outerIndex}}" value="{{dd.radioGroup}}">
							                <i class="skin"></i>
							            </label>
									</td>
									<td>{{ dd.selection }} </td>
									<td ng-if="dd.selection=='Value set'" ng-bind="dd.value"></td>
									<td  ng-if='dd.selection=="No Value"'>
											Accept default
									</td>
									<td  ng-if='dd.selection=="Fixed Value"'>
										<div class="field-group">
											<input id="emptyMessage" ddh-reset="" class="span12" type="text" data-ng-model="drillDownParams[outerIndex].valValue">
										</div>	
									</td>
									<td  ng-if='dd.selection=="Value of Column"'>
										<select name="drillDown" b2b-dropdown ng-model="drillDownParams[outerIndex].valColId" placeholder-text="Select">
											<option b2b-dropdown-list option-repeat="d in childReportCol" value="{{d.id}}">{{d.name}}</option>
										</select>
									</td>
									<td  ng-if='dd.selection=="Value of form field"'>
										<select name="drillDownField" b2b-dropdown ng-model="drillDownParams[outerIndex].valFieldId" placeholder-text="Select">
											<option b2b-dropdown-list option-repeat="d in childReportFF" value="{{d.id}}">{{d.name}}</option>
										</select>									
									</td>
								</tr>
							</tbody>
						</table>
					</tr>
					
					<!-- <tr>
						<td class="colTableLeftColumn">Advanced Display Formatting:</td>
						<td id="drilldownOption">
							<select name="drillDown" b2b-dropdown ng-model="colInfo.drilldownURL" placeholder-text="Select">
								<option b2b-dropdown-list option-repeat="d in drilldownReports" 	value="{{d.id}}">{{d.name}}</option>
							</select>
						</td>
					</tr>  -->
				
				</tbody>
			</table>
		</div>
		
</div>
<div class="b2b-modal-footer ng-scope">
			<div class="cta-button-group in">
				<button class="btn btn-alt btn-small" type="button" ng-show="isEditCol"
					ng-click="save()">Save</button>
				<button class="btn btn-alt btn-small" type="button" ng-hide="isEditCol"
					ng-click="complete()">Complete</button>
				<button class="btn btn-alt btn-small" type="button"
					ng-click="cancel()">Cancel</button>
			</div>
		</div>