| 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"> |
| 19 | <h4 class="modal-title" id="modal-basic-title">{{'PAGE.WIMACCOUNTS.WIMDETAILS' | 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> |
| 23 | </div> |
| 24 | <div class="modal-body modal-body-custom-height p-0"> |
| 25 | <table class="table table-striped table-layout-fixed mb-0" *ngIf="wimDetails"> |
| 26 | <tr> |
| 27 | <td colspan="2"> |
| 28 | <b>{{'ID' | translate}}:</b> {{(wimDetails._id)?wimDetails._id:''}} |
| 29 | </td> |
| 30 | </tr> |
| 31 | <tr> |
| 32 | <td colspan="2"> |
| 33 | <b>{{'DETAILEDSTATUS' | translate}}:</b> {{(wimDetails._admin['detailed-status'])?wimDetails._admin['detailed-status']:''}} |
| 34 | </td> |
| 35 | </tr> |
| 36 | <tr> |
| 37 | <td> |
| 38 | <b>{{'OPERATIONALSTATE' | translate}}:</b><span class="ml-1 badge" [ngClass]="{'badge-info':wimDetails._admin.operationalState === operationalStateFirstStep, |
| 39 | 'badge-success':wimDetails._admin.operationalState === operationalStateSecondStep, |
| 40 | 'badge-danger':wimDetails._admin.operationalState === operationalStateThirdStep}"> |
| 41 | {{(wimDetails._admin.operationalState)?wimDetails._admin.operationalState:''}} |
| 42 | </span> |
| 43 | </td> |
| 44 | <td> |
| 45 | <b>{{'PAGE.WIMACCOUNTS.SCHEMAVERSION' | translate}}:</b> {{(wimDetails.schema_version)?wimDetails.schema_version:''}} |
| 46 | </td> |
| 47 | </tr> |
| 48 | <tr> |
| 49 | <td> |
| 50 | <b>{{'NAME' | translate}}:</b> {{(wimDetails.name)?wimDetails.name:''}} |
| 51 | </td> |
| 52 | <td> |
| 53 | <b>{{'TYPE' | translate}}:</b> {{(wimDetails.wim_type)?wimDetails.wim_type:''}} |
| 54 | </td> |
| 55 | </tr> |
| 56 | <tr> |
| 57 | <td> |
| 58 | <b>{{'URL' | translate}}:</b> {{(wimDetails.wim_url)?wimDetails.wim_url:''}} |
| 59 | </td> |
| 60 | <td> |
| 61 | <b>{{'DESCRIPTION' | translate}}:</b> {{(wimDetails.description)?wimDetails.description:''}} |
| 62 | </td> |
| 63 | </tr> |
| 64 | <tr> |
| 65 | <td> |
| 66 | <b>{{'CREATED' | translate}}:</b> {{(wimDetails._admin.created)?this.sharedService.convertEpochTime(wimDetails._admin.created):''}} |
| 67 | </td> |
| 68 | <td> |
| 69 | <b>{{'MODIFIED' | translate}}:</b> {{(wimDetails._admin.modified)?this.sharedService.convertEpochTime(wimDetails._admin.modified):''}} |
| 70 | </td> |
| 71 | </tr> |
| 72 | <tr> |
| 73 | <td colspan="2"> |
| 74 | <b>{{'DEPLOYED' | translate}}</b> <br> |
| 75 | <b>{{'PAGE.WIMACCOUNTS.RO' | translate}}:</b> {{(wimDetails._admin.deployed.RO)?wimDetails._admin.deployed.RO:''}} <br> |
| 76 | <b>{{'PAGE.WIMACCOUNTS.ROACCOUNT' | translate}}:</b> {{(wimDetails._admin.deployed['RO-account'])?wimDetails._admin.deployed['RO-account']:''}} |
| 77 | </td> |
| 78 | </tr> |
| 79 | </table> |
| 80 | </div> |
| 81 | <div class="modal-footer"> |
| 82 | <button type="button" class="btn btn-danger" (click)="activeModal.close()">{{'CANCEL' | translate}}</button> |
| 83 | </div> |
| 84 | <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader> |