3 <div class="tab-content">
4 <h1>Step {{stepNo}} - Report Security</h1>
8 <div *ngIf="showSpinner">
9 <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
12 <div *ngIf="!showSpinner">
13 <div class="tab-pane">
14 <div class="field-group">
20 <!-- <div class="column"> -->
22 <label class="left">Created By: </label> <label>{{reportSecurityInfo.createdUser}}</label>
26 <label class="right">Created Date: </label> <label>{{reportSecurityInfo.createdDate}}</label>
36 <!-- <div class="column"> -->
38 <label class="left">Last Updated By: </label> <label>{{reportSecurityInfo.updateUser}}</label>
41 <label class="right">Last Updated: </label> <label>{{reportSecurityInfo.updatedDate}}</label>
49 <label for="reportType">Report Owner</label> <br/>
50 <select class="browser-default custom-select defaultFontSize" required="required" placeholder="Select Report Type" [(ngModel)]="reportOwner" value="{{reportSecurityInfo.createdUser}}">
51 <option class="defaultFontSize" selected>Select Report Owner </option>
52 <option *ngFor="let reportOwner of reportOwnerList" class="defaultFontSize" value="{{reportOwner.name}}" >{{reportOwner.name}}</option>
56 <label for="reportType">Public? (All users can run the report):</label> <br/>
57 <select class="browser-default custom-select defaultFontSize" required="required" placeholder="Select Report Type" [(ngModel)]="publicReport" value="publicReport">
58 <option class="defaultFontSize" value="YES" >YES</option>
59 <option class="defaultFontSize" value="NO" >NO</option>
74 <div *ngIf="showUserListSpinner">
75 <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
78 <div *ngIf="!showUserListSpinner">
81 <th><label>No</label></th>
82 <th><label>User Name</label></th>
83 <th><label>Run Access</label></th>
84 <th><label>Edit Access</label></th>
85 <th><label>Remove</label></th>
87 <tr *ngFor="let reportUser of reportUserList; let i = index;">
89 <td style="width: 700px;"> {{reportUser.name}}</td>
91 <div class="onoffswitch" >
92 <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" disabled="disabled" Checked="true">
93 <label class="onoffswitch-label" for="myonoffswitch">
94 <span class="onoffswitch-inner"></span>
95 <span class="onoffswitch-switch"></span>
100 <div class="onoffswitch">
101 <input type="checkbox" name="reportUser{{i}}" class="onoffswitch-checkbox" id="reportUser{{i}}" (change)="addUserEditAccess(reportUser.id, i)" [(ngModel)]="userEditAccessArr[i]" Checked="userEditAccessArr[i]">
102 <label class="onoffswitch-label" for="reportUser{{i}}">
103 <span class="onoffswitch-inner"></span>
104 <span class="onoffswitch-switch"></span>
108 <td><mat-icon aria-hidden="false" aria-label="delete" (click)="removeReportUser(reportUser.name)">delete</mat-icon></td>
115 <label for="reportType">Grant Access To:</label> <br/>
116 <select style="width: 95%" class="browser-default custom-select defaultFontSize" required="required" placeholder="Select user" [(ngModel)]="reportUser" value="reportUser">
117 <option class="defaultFontSize" selected>Select User</option>
118 <option *ngFor="let reportOwner of reportOwnerList" class="defaultFontSize" value="{{reportOwner.name}}" >{{reportOwner.name}}</option>
124 <button style="font-size: 17px;" class="btn btn-alt btn-small" (click)="addReportUser()" >Add</button>
131 <h4>Report Roles</h4>
135 <div *ngIf="showRoleListSpinner">
136 <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
139 <div *ngIf="!showRoleListSpinner">
142 <th><label>No</label></th>
143 <th><label>User Name</label></th>
144 <th><label>Run Access</label></th>
145 <th><label>Edit Access</label></th>
146 <th><label>Remove</label></th>
148 <tr *ngFor="let securityRole of reportSecurityRoles; let j = index;">
150 <td style="width: 700px;">{{securityRole.name}}</td>
152 <div class="onoffswitch" >
153 <input type="checkbox" name="onoffswitch2" class="onoffswitch-checkbox" id="myonoffswitch2" disabled="disabled" style="cursor: not-allowed;" checked>
154 <label class="onoffswitch-label" for="myonoffswitch2">
155 <span class="onoffswitch-inner"></span>
156 <span class="onoffswitch-switch"></span>
161 <div class="onoffswitch">
162 <input type="checkbox" name="securityRole{{j}}" class="onoffswitch-checkbox" id="securityRole{{j}}" (change)="addRoleEditAccess(securityRole.id, j)" [(ngModel)]="addRoleEditAccessArr[j]" Checked="addRoleEditAccessArr[j]">
163 <label class="onoffswitch-label" for="securityRole{{j}}">
164 <span class="onoffswitch-inner"></span>
165 <span class="onoffswitch-switch"></span>
169 <td><mat-icon aria-hidden="false" aria-label="delete" (click)="removeReportRole(securityRole.id)">delete</mat-icon></td>
176 <label for="reportType">Grant Access To:</label> <br/>
177 <select style="width: 95%" class="browser-default custom-select defaultFontSize" required="required" placeholder="Select Report Type" [(ngModel)]="reportRole" value="reportRole">
178 <option class="defaultFontSize" selected>Select Role </option>
179 <option *ngFor="let reportRoles of reportRoleList" class="defaultFontSize" value="{{reportRoles.name}}" >{{reportRoles.name}}</option>
185 <button style="font-size: 17px;" class="btn btn-alt btn-small" (click)="addReportRole()" >Add</button>
191 <button style="font-size: 17px;" class="btn btn-alt btn-small" (click)="saveSecurityTabData()" >Save</button>