| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | --> |
| 18 | <div class="modal-header"> |
| Barath Kumar R | 42862ae | 2020-12-17 20:15:53 +0530 | [diff] [blame] | 19 | <h4 class="modal-title" id="modal-basic-title">{{'PAGE.SDNCONTROLLER.DETAILS' | translate}}</h4> |
| 20 | <button class="button-xs" type="button" class="close" aria-label="Close" (click)="activeModal.close()"> |
| 21 | <i class="fas fa-times-circle text-danger"></i> |
| 22 | </button> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 23 | </div> |
| 24 | <div class="modal-body modal-body-custom-height p-0"> |
| Barath Kumar R | 42862ae | 2020-12-17 20:15:53 +0530 | [diff] [blame] | 25 | <table class="table table-sm table-hover table-layout-fixed mb-0" *ngIf="sdnDetails else noData"> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 26 | <tr> |
| 27 | <th> |
| 28 | {{'ID' | translate}} |
| 29 | </th> |
| 30 | <td> |
| 31 | {{(sdnDetails._id)?sdnDetails._id:'-'}} |
| 32 | </td> |
| 33 | </tr> |
| 34 | <tr> |
| 35 | <th> |
| 36 | {{'NAME' | translate}} |
| 37 | </th> |
| 38 | <td> |
| 39 | {{(sdnDetails.name)?sdnDetails.name:'-'}} |
| 40 | </td> |
| 41 | </tr> |
| 42 | <tr> |
| 43 | <th> |
| 44 | {{'TYPE' | translate}} |
| 45 | </th> |
| 46 | <td> |
| 47 | {{(sdnDetails.type)?sdnDetails.type:'-'}} |
| 48 | </td> |
| 49 | </tr> |
| 50 | <tr> |
| 51 | <th> |
| 52 | {{'OPERATIONALSTATE' | translate}} |
| 53 | </th> |
| 54 | <td> |
| 55 | <span class="badge ms-1" [ngClass]="{'badge bg-warning text-white':sdnDetails._admin.operationalState === operationalStateFirstStep, |
| 56 | 'badge bg-success text-white':sdnDetails._admin.operationalState === operationalStateSecondStep, |
| 57 | 'badge bg-danger text-white':sdnDetails._admin.operationalState === operationalStateThirdStep}"> |
| 58 | {{(sdnDetails._admin.operationalState)?sdnDetails._admin.operationalState:'-'}}</span> |
| 59 | </td> |
| 60 | </tr> |
| 61 | <tr> |
| 62 | <th> |
| 63 | {{'URL' | translate}} |
| 64 | </th> |
| 65 | <td> |
| 66 | {{(sdnDetails.url)?sdnDetails.url:'-'}} |
| 67 | </td> |
| 68 | </tr> |
| 69 | <tr> |
| 70 | <th> |
| 71 | {{'USER' | translate}} |
| 72 | </th> |
| 73 | <td> |
| 74 | {{(sdnDetails.user)?sdnDetails.user:'-'}} |
| 75 | </td> |
| 76 | </tr> |
| 77 | <tr> |
| 78 | <th> |
| 79 | {{'VERSION' | translate}} |
| 80 | </th> |
| 81 | <td> |
| 82 | {{(sdnDetails.version)?sdnDetails.version:'-'}} |
| 83 | </td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <th> |
| 87 | {{'PAGE.SDNCONTROLLER.DPID' | translate}} |
| 88 | </th> |
| 89 | <td> |
| 90 | {{(sdnDetails.dpid)?sdnDetails.dpid:'-'}} |
| 91 | </td> |
| 92 | </tr> |
| 93 | <tr> |
| 94 | <th> |
| 95 | {{'CREATED' | translate}} |
| 96 | </th> |
| 97 | <td> |
| 98 | {{(sdnDetails._admin.created)?this.sharedService.convertEpochTime(sdnDetails._admin.created):'-'}} |
| 99 | </td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <th> |
| 103 | {{'MODIFIED' | translate}} |
| 104 | </th> |
| 105 | <td> |
| 106 | {{(sdnDetails._admin.modified)?this.sharedService.convertEpochTime(sdnDetails._admin.modified):'-'}} |
| 107 | </td> |
| 108 | </tr> |
| Barath Kumar R | 42862ae | 2020-12-17 20:15:53 +0530 | [diff] [blame] | 109 | <tr> |
| 110 | <th> |
| 111 | {{'DEPLOYED' | translate}} |
| 112 | </th> |
| 113 | <td> |
| 114 | <b>{{'PAGE.SDNCONTROLLER.RO' | translate}}:</b> |
| 115 | {{(sdnDetails._admin.deployed.RO)?sdnDetails._admin.deployed.RO:'-'}} |
| 116 | </td> |
| 117 | </tr> |
| 118 | </table> |
| 119 | <ng-template #noData>{{'NODATAERROR' | translate}}</ng-template> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 120 | </div> |
| 121 | <div class="modal-footer"> |
| Barath Kumar R | 42862ae | 2020-12-17 20:15:53 +0530 | [diff] [blame] | 122 | <button (click)="activeModal.close()" class="btn btn-danger">{{'CANCEL' | translate}}</button> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 123 | </div> |
| 124 | <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader> |