| 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 *ngIf="topologyType === 'Add'"> |
| 19 | <form [formGroup]="addConfirmationForm" (ngSubmit)="addConfirmation()" autocomplete="off"> |
| 20 | <div class="modal-header"> |
| 21 | <h4 class="modal-title" id="modal-basic-title"> |
| 22 | {{'CREATE' | translate}} |
| 23 | {{ topologytitle | translate}} |
| 24 | </h4> |
| 25 | <button class="button-xs" type="button" class="close" aria-label="Close" (click)="activeModal.close()"> |
| 26 | <i class="fas fa-times-circle text-danger"></i> |
| 27 | </button> |
| 28 | </div> |
| 29 | <div class="modal-body"> |
| 30 | <div *ngIf="topologyType === 'Add'"> |
| 31 | <p [innerHTML]="topologyname"></p> |
| 32 | <ng-select placeholder="{{'SELECT' | translate}}" formControlName="cpName" [items]="cpDetails" bindLabel="name" |
| 33 | bindValue="name" [(ngModel)]="connectionPointInput" |
| 34 | [ngClass]="{ 'is-invalid': submitted && f.cpName.errors }"></ng-select> |
| 35 | </div> |
| 36 | </div> |
| 37 | <div class="modal-footer"> |
| 38 | <button type="button" class="btn btn-danger" (click)="activeModal.close()">{{'CANCEL' | translate}}</button> |
| 39 | <button type="submit" class="btn btn-primary">{{'OK' | translate }}</button> |
| 40 | </div> |
| 41 | </form> |
| 42 | </div> |
| 43 | <div *ngIf="topologyType !== 'Add'"> |
| 44 | <div class="modal-header"> |
| 45 | <h4 class="modal-title" id="modal-basic-title"> |
| 46 | {{(topologyType === 'Delete' ? 'DELETE' : (topologyType === 'Add' ? 'CREATE' : '')) | translate}} |
| 47 | {{ topologytitle | translate}} |
| 48 | </h4> |
| 49 | <button class="button-xs" type="button" class="close" aria-label="Close" (click)="activeModal.close()"> |
| 50 | <i class="fas fa-times-circle text-danger"></i> |
| 51 | </button> |
| 52 | </div> |
| 53 | <div class="modal-body"> |
| 54 | <span *ngIf="topologyType === 'Delete'">{{'DELETECONFIRMPOPUPMESSAGE' | translate}} {{ topologyname }} ?</span> |
| 55 | <ul *ngIf="topologyType === 'Info'"> |
| 56 | <li> |
| 57 | <p><b>{{'PAGE.TOPOLOGY.HELPINFO.CREATEEDGE' | translate}}</b>: |
| 58 | {{'PAGE.TOPOLOGY.HELPINFO.CREATEEDGEFIRSTSETENCE' | translate}} <span class="help-key">Shift</span> + <span |
| 59 | class="help-key">Drag</span> {{'PAGE.TOPOLOGY.HELPINFO.CREATEEDGESECONDSETENCE' | translate}}</p> |
| 60 | </li> |
| 61 | <li> |
| 62 | <p><b>{{'PAGE.TOPOLOGY.HELPINFO.DELETEEDGEVERTEX' | translate}}</b>: |
| 63 | {{'PAGE.TOPOLOGY.HELPINFO.DELETEEDGEVERTEXSENTENCE' | translate}}</p> |
| 64 | </li> |
| 65 | <li> |
| 66 | <p><b>{{'PAGE.TOPOLOGY.HELPINFO.SPREADEDGE' | translate}}</b>: |
| 67 | {{'PAGE.TOPOLOGY.HELPINFO.SPREADEDGESENTENCE' | translate}} <span class="help-key">ctrl</span> + <span |
| 68 | class="help-key">Drag</span></p> |
| 69 | </li> |
| 70 | <li> |
| 71 | <p><b>{{'PAGE.TOPOLOGY.HELPINFO.EDGEINFO' | translate}}</b>: |
| 72 | {{'PAGE.TOPOLOGY.HELPINFO.EDGEINFOSENTENCE' | translate}}</p> |
| 73 | </li> |
| 74 | </ul> |
| 75 | </div> |
| 76 | <div class="modal-footer"> |
| 77 | <button type="button" class="btn btn-danger" (click)="activeModal.close()">{{'CANCEL' | translate}}</button> |
| 78 | <button type="button" *ngIf="topologyType !== 'Info'" (click)="confirmation();" |
| 79 | class="btn btn-primary">{{'OK' | translate }}</button> |
| 80 | </div> |
| 81 | </div> |