summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-reports/wz_steps/report-step.html
blob: 9b4988701f03f844fdcdba10cb2283b5c1ce5d9e (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
233
234
235
236
237
238
239
240
241
242
243
<!-- <link rel="stylesheet" type="text/css" href="static/fusion/raptor/css/raptor.css"> -->
<style>
#stepView table tbody td {
    border: none;
}

#stepView table tbody tr {
    border: none;
}


.noTableBorder table tbody td {
    border: none;
}
.noTableBorder table tbody tr {
    border: none;
}
.selectWrap {
	width: 300px;
}
.tdLeftColumn {
	text-align: right;
	vertical-align:middle;
}

.tabs.tabs-justified > li.active, .tabs.promo-tabs > li.active {
z-index:0;
}
</style>

<div id="page-content">
<h1 class="heading-page">Report Wizard</h1>


<!-- <h1 id="tabs---promo">Tabs - Promo</h1>
<button class="btn btn-secondary btn-small" ng-click="gTabs[3].disabled = !gTabs[3].disabled">{{gTabs[3].disabled?'Enable':'Disable'}}</button> - Toggle 4th (Features) Tab
<br><br> -->
 <b2b-tabset tab-id-selected="activeTabsId">
     <b2b-tab ng-repeat="tab in gTabs" tab-item="tab" 
              id="{{tab.uniqueId}}" aria-controls="{{tab.tabPanelId}}"
              ng-disabled="tab.disabled">
         {{tab.title}}
     </b2b-tab>
 </b2b-tabset>
<br><br>
<div ng-show="showLoader" class="span loader-container">
	<i class="icon-primary-spinner" role="img"
		aria-label="Please wait while we load your content"></i>
</div>

<div ng-hide="showLoader">

<!-- <select ng-model="prj" 
        ng-options="item.projectName for item in allProjects track by item.id" data-ng-init="getAllProjects()" 
        ng-change="selectAction();">
    <option value="">Select project</option>
</select>

<a ng-click="createAction()" class="pointer">Create Project</a> -->

<input type="hidden" name="project_id" ng-model="project_id" value = ""/>

<div id="stepViewColumn" ng-show = "isColumnStep">
	<h1>Step 3 : Columns</h1>
    <table class="striped">
        <thead>
            <tr>
                <th>No</th>
                <th>Column Name</th>
                <th>ID</th>
                <th>Edit</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat = "rowData in colTableRowData">
                <td>{{$index+1}}</td>
                <td>{{rowData.name}}</td>
                <td>{{rowData.id}}</td>
                <td><a ng-click="openColumnPopup(rowData)" class="icon-misc-pen"></a></td>
            </tr>
        </tbody>
    </table>    
</div>

<div id="stepViewFormField" ng-show = "isFormFieldStep">
	<h1>Step 4 : Form Fields</h1>
    <table class="striped">
        <thead>
            <tr>
                <th>No</th>
                <th>Field Name</th>
                <th>Edit</th>
                <th>Delete</th>                
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat = "rowData in formFieldData">
                <td>{{$index+1}}</td>
                <td>{{rowData.name}}[{{rowData.id}}]</td>
                <td><a ng-click="openFormFieldPopup(rowData)" class="icon-misc-pen"></a></td>
                <td><a ng-click="deleteFormField(rowData)" class="icon-misc-trash"></a></td>
            </tr>
        </tbody>
    </table>    
</div>

<div id="stepViewSecurity" ng-show = "isSecurityStep">
	<h1>Step 5 : Report Security</h1>
	<div class="noTableBorder">
	 <table class="striped">
        <tbody>
        	<tr>
                <td>Created By:  {{reportSecurityInfo.createdUser}}</td>
                <td>Created Date:	{{reportSecurityInfo.createdDate}}</td>
            <tr/>
            <tr>
                <td>Last Updated By:  {{reportSecurityInfo.updateUser}}</td>
                <td>Last Updated:	{{reportSecurityInfo.updatedDate}}</td>
        	<tr/>
            <tr>
                <td>
                	Report Owner:
                	
                	<select name="reportOwner" b2b-dropdown ng-model="reportOwnerId.id">
						<option b2b-dropdown-list option-repeat="d in reportOwnerList" value="{{d.id}}">{{d.name}}</option>
                    </select>
                	
                </td>
                <td>
                	Public? (All users can run the report):
                	<select name="isPublic" b2b-dropdown ng-model="reportSecurityInfo.isPublic">
						<option b2b-dropdown-list option-repeat="d in isPublicOptionList" value="{{d.value}}">{{d.text}}</option>
                    </select>
                </td>
        	<tr/>        	        	
        </tbody>
    </table>    
	</div>

	 <div style="margin-top:20px;">
     <h1 style="margin-bottom:5px;">Report Users</h1>	 	
	 <table class="striped">
        <thead>
        	<tr>
                <th width="10%">No</th>
                <th width="45%">User Name</th>
                <th width="15%">Run Access</th>
                <th width="15%">Edit Access</th>
                <th width="15%">Remove</th>
            <tr/>
        </thead>
        <tbody>
        	<tr ng-repeat = "reportUser in reportSecurityUsers">
        		<td>{{$index+1}}</td>
	            <td>{{reportUser.name}}</td>
	            <td>
			        <label for="switch{{$index+1}}runAccess" class="btn-switch-label">
			            <input type="checkbox" role="switch" id="switch{{$index+1}}runAccess" b2b-switches ng-model=true ng-disabled=true aria-disabled=true aria-label="">
			        </label>				            
	            </td>
	            <td>		            
			        <label for="switch{{$index+1}}" class="btn-switch-label">
			            <input type="checkbox" role="switch" id="switch{{$index+1}}" b2b-switches ng-model="reportUser.accessAllowed" ng-click="toggleUserEditAccessActive(reportUser)" ng-disabled=false aria-disabled=false aria-label="">
			        </label>
			    </td>
	            <td>
	            	<a class="icon-misc-trash" style="font-size: 22px;" ng-click="removeReportSecurityUser(reportUser)"> </a>
	            </td>        	
        	</tr>        	
    		<tr>
    			<td colspan="2">
    				Grant Access To:
	        	</td>
	        	
    			<td colspan="2">
			        <select name="reportUser" b2b-dropdown ng-model="addReportUserId.id" placeholder-text="Select a User">
			        	<option b2b-dropdown-list option-repeat="d in reportOwnerList" value="{{d.id}}">{{d.name}}</option>
			        </select>
	        	</td>
	        	<td>
					<button class="btn btn-alt btn-small" type="button"  ng-click="addReportSecurityUser(addReportUserId.id)">Add</button>	        	
	        	</td>
        	</tr>

        </tbody>
    </table>
    </div> 
    
	<div style="margin-top:20px;">
	 <h1>Report Roles</h1>	 
	 <table class="striped">
        <thead>
        	<tr>
                <th width="10%">No</th>
                <th width="45%">Role Name</th>
                <th width="15%">Run Access</th>
                <th width="15%">Edit Access</th>
                <th width="15%">Remove</th>
            <tr/>
        </thead>
        <tbody>
        	<tr ng-repeat = "reportRole in reportSecurityRoles">
        		<td>{{$index+1}}</td>
	            <td>{{reportRole.name}}</td>
	            <td>
			        <label for="switch{{$index+1}}RoleRunAccess" class="btn-switch-label">
			            <input type="checkbox" role="switch" id="switch{{$index+1}}RoleRunAccess" b2b-switches ng-model=true ng-disabled=true aria-disabled=true aria-label="">
			        </label>				            
	            </td>
	            <td>		            
			        <label for="switch{{$index+1}}RoleEditAccess" class="btn-switch-label">
			            <input type="checkbox" role="switch" id="switch{{$index+1}}RoleEditAccess" b2b-switches ng-model="reportRole.accessAllowed" ng-click="toggleRoleEditAccessActive(reportRole)" ng-disabled=false aria-disabled=false aria-label="">
			        </label>
			    </td>
	            <td>
	            	<a class="icon-misc-trash" ng-click="removeReportSecurityRole(reportRole)" style="font-size: 22px;"> </a>

	            </td>        	
        	</tr>        	
    		<tr>
    			<td colspan="2">
    				Grant Access To:
	        	</td>
    			<td colspan="2">
			        <select name="reportOwner" b2b-dropdown ng-model="addReportRoleId.id" placeholder-text="Select a Role">
			        	<option b2b-dropdown-list option-repeat="d in reportRoleList" value="{{d.id}}">{{d.name}}</option>
			        </select>
	        	</td>
	        	<td>
					<button class="btn btn-alt btn-small" type="button"  ng-click="addReportSecurityRole(addReportRoleId.id)">Add</button>
				</td>
        	</tr>
        </tbody>
    </table>   
    </div>

</div>

<div id="stepView">
</div>
</div>

</div>