Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | <div class="row"> |
| 2 | <div class="instantiation-status-header"> |
| 3 | <div> |
| 4 | <div class="row" style="margin-left: 0;"> |
| 5 | <div> |
| 6 | <span class="title">Instantiation Status</span> |
| 7 | <span class="icon-info" |
| 8 | triggers="mouseenter:mouseleave" |
| 9 | popover="This table presents all the instantiation requests you made that are waiting, during or finished instantiating. You may see others requests by removing the Show only my requests checkmark." |
| 10 | placement="bottom"></span> |
| 11 | |
| 12 | </div> |
| 13 | <div class="lastUpdate"> |
| 14 | <div style="float: left;margin-top: 3px;"><span>Last update: {{lastUpdatedDate | date:'MMM. dd, yyyy | HH:mm'}}</span></div> |
| 15 | <div id="refresh-btn" class="refresh-btn" [ngClass]="{'spin' : !dataIsReady}" (click)="deactivateInterval(); refreshData(); activateInterval();"> |
| 16 | <span class="icon-refresh"></span> |
| 17 | </div> |
| 18 | </div> |
| 19 | </div> |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="instantiation-status-data table-responsive"> |
| 23 | <table id="instantiation-status" class="table table-bordered"> |
| 24 | <thead class="thead-dark"> |
| 25 | <tr> |
| 26 | <th scope="col" class="smallTd">User ID</th> |
| 27 | <th scope="col" class="normal">Model Name</th> |
| 28 | <th scope="col" class="normal">Instance Name</th> |
| 29 | <th scope="col" class="smallTd">Model version</th> |
| 30 | <th scope="col" class="normal">Subscriber</th> |
| 31 | <th scope="col" class="mediumTd">Service Type</th> |
| 32 | <th scope="col" class="normal">Region</th> |
| 33 | <th scope="col" class="mediumTd">Tenant</th> |
| 34 | <th scope="col" class="mediumTd">AIC Zone</th> |
| 35 | <th scope="col" class="mediumTd">Project</th> |
| 36 | <th scope="col" class="mediumTd">Owning entity</th> |
| 37 | <th scope="col" class="smallTd">Pause</th> |
| 38 | <th scope="col" class="mediumTd">Date</th> |
| 39 | <th scope="col" class="last">Status</th> |
| 40 | </tr> |
| 41 | </thead> |
| 42 | <tbody > |
| 43 | <tr *ngFor="let data of serviceInfoData; let i = index" [ngClass]="{'odd' : data.serviceIndex%2 == 1}" [id]="data.jobId" (mouseenter)="currentJobId = data?.jobId"> |
| 44 | <td class="smallTd" id="userId"><custom-ellipsis [id]="data.userId" [value]="data.userId"></custom-ellipsis></td> |
| 45 | <td class="normal" id="serviceModelName"><custom-ellipsis [id]="data.serviceModelName" [value]="data.serviceModelName"></custom-ellipsis></td> |
| 46 | <td class="normal" id="serviceInstanceName"><custom-ellipsis [id]="data.serviceInstanceName" [value]="data.serviceInstanceName"></custom-ellipsis></td> |
| 47 | <td class="smallTd" id="serviceModelVersion"><custom-ellipsis [id]="data.serviceModelVersion" [value]="data.serviceModelVersion"></custom-ellipsis></td> |
| 48 | <td class="normal" id="subscriberName"><custom-ellipsis [id]="data.subscriberName" [value]="data.subscriberName"></custom-ellipsis></td> |
| 49 | <td class="mediumTd" id="serviceType"><custom-ellipsis [id]="data.serviceType" [value]="data.serviceType"></custom-ellipsis></td> |
| 50 | <td class="normal" id="regionId"><custom-ellipsis [id]="data.regionId" [value]="data.regionId"></custom-ellipsis></td> |
| 51 | <td class="mediumTd" id="tenantName"><custom-ellipsis [id]="data.tenantName" [value]="data.tenantName"></custom-ellipsis></td> |
| 52 | <td class="mediumTd" id="aicZoneName"><custom-ellipsis [id]="data.aicZoneName" [value]="data.aicZoneName"></custom-ellipsis></td> |
| 53 | <td class="mediumTd" id="project"><custom-ellipsis [id]="data.project" [value]="data.project"></custom-ellipsis></td> |
| 54 | <td class="mediumTd" id="owningEntityName"><custom-ellipsis [id]="data.owningEntityName" [value]="data.owningEntityName"></custom-ellipsis></td> |
| 55 | <td class="smallTd" id="pause"><custom-ellipsis [id]="data.pause" [value]="data.pause"></custom-ellipsis></td> |
| 56 | <td class="mediumTd" id="created"><custom-ellipsis [id]="data.created" [value]="data.created | date:'MMM. dd, yyyy HH:mm'"></custom-ellipsis></td> |
| 57 | <td class="last" id="jobStatus" [ngClass]="data.jobStatus"> |
| 58 | <custom-popover [value]="data.serviceStatus.tooltip" style="float: left;"> |
| 59 | <svg-icon id="jobStatusIcon-{{i}}" (click)="auditInfo(data)" svg-directive [fill]="data.serviceStatus.color" [widthViewBox]="27" [heightViewBox]="27" |
| 60 | src="./assets/img/{{data.serviceStatus.iconClassName}}.svg"></svg-icon> |
| 61 | </custom-popover> |
| 62 | <div class="menu-div" (click)="onContextMenu($event, data); currentJobId = data.jobId"> |
| 63 | <span class="icon-menu"></span> |
| 64 | <context-menu> |
| 65 | <ng-template contextMenuItem (execute)="open($event?.item)" [enabled]="isOpenVisible"> |
| 66 | <div [attr.data-tests-id]="'context-menu-open'"> |
| 67 | <span class="context-menu-icon"><i class="fa fa-external-link" aria-hidden="true"></i></span> |
| 68 | Open |
| 69 | </div> |
| 70 | </ng-template> |
| 71 | <ng-template contextMenuItem (execute)="auditInfo($event?.item)"> |
| 72 | <div [attr.data-tests-id]="'context-menu-audit-info'"> |
| 73 | <span class="context-menu-icon audit-icon"><i class="fa fa-info-circle" aria-hidden="true"></i></span> |
| 74 | Audit info |
| 75 | </div> |
| 76 | </ng-template> |
| 77 | <ng-template contextMenuItem let-item (execute)="deleteItem($event?.item)" [enabled]="isDeleteEnabled"> |
| 78 | <div [attr.data-tests-id]="'context-menu-delete'"> |
| 79 | <span class="context-menu-icon"><i class="fa fa-trash-o" aria-hidden="true"></i></span> |
| 80 | Delete |
| 81 | </div> |
| 82 | </ng-template> |
| 83 | <ng-template contextMenuItem let-item (execute)="hideItem($event?.item)" [enabled]="isHideEnabled"> |
| 84 | <div [attr.data-tests-id]="'context-menu-hide'"> |
| 85 | <span class="context-menu-icon"><i class="fa fa-eye-slash" aria-hidden="true"></i></span> |
| 86 | Hide request |
| 87 | </div> |
| 88 | </ng-template> |
| 89 | </context-menu> |
| 90 | </div> |
| 91 | </td> |
| 92 | </tr> |
| 93 | </tbody> |
| 94 | </table> |
| 95 | </div> |
| 96 | <audit-info-modal></audit-info-modal> |
| 97 | </div> |
| 98 | |
| 99 | |
| 100 | |