| 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 | --> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 18 | <div class="form-group row mb-3"> |
| 19 | <div class="d-flex align-items-center header-style p-0">{{'EDIT' | translate}} <span |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 20 | class="text-uppercase">{{pacakgeType}} </span>{{'DESCRIPTOR' | translate}}</div> |
| 21 | </div> |
| 22 | <form *ngIf="defaults[mode]"> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 23 | <div class="row mb-2"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 24 | <div class="col-2"> |
| 25 | <div class="form-group"> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 26 | <select class="form-control select" name="state" [(ngModel)]="mode" (ngModelChange)="changeMode()"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 27 | <option *ngFor="let types of fileTypes;" [value]="types.value"> |
| 28 | {{types.viewValue}}</option> |
| 29 | </select> |
| 30 | </div> |
| 31 | </div> |
| 32 | <div class="col-4"> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 33 | <div class="btn-group-toggle mb-1 me-1 float-start"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 34 | <label class="btn btn-light" [class.active]="readOnly"> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 35 | <input class="checkbox d-none" type="checkbox" [(ngModel)]="readOnly" name="readOnly" autocomplete="off"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 36 | {{'READONLYMODE' | translate}} ({{'CURRENTLY' | translate}} {{ (readOnly ? 'ON' : 'OFF') | translate }}) |
| 37 | </label> |
| 38 | </div> |
| 39 | </div> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 40 | <div class="col-6 text-end"> |
| 41 | <button type="button" class="btn btn-primary me-2" routerLink="/packages/{{navigatePath}}/compose/{{paramsID}}" |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 42 | [hidden]="navigatePath==='netslice'"> |
| 43 | <i class="fa fa-sitemap" aria-hidden="true"></i> {{'SHOWGRAPH' | translate}} |
| 44 | </button> |
| SANDHYA.JS | c84f112 | 2024-06-04 21:50:03 +0530 | [diff] [blame] | 45 | <button type="button" class="btn btn-primary me-2" (click)="update(true)" [hidden]="navigatePath==='netslice'"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 46 | <i class="fa fa-save" aria-hidden="true"></i> {{'UPDATESHOWGRAPH' | translate}} |
| 47 | </button> |
| 48 | <button type="button" class="btn btn-primary" (click)="update(false)"> |
| 49 | <i class="fa fa-save" aria-hidden="true"></i> {{'UPDATE' | translate}} |
| 50 | </button> |
| 51 | </div> |
| 52 | </div> |
| 53 | </form> |
| Barath Kumar R | d477b85 | 2020-07-07 15:24:05 +0530 | [diff] [blame] | 54 | <div class="ngx-codemirror edit-packages" *ngIf="defaults[mode] else noData"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 55 | <ngx-codemirror [options]="options" [ngModel]="defaults[mode]" [disabled]="readOnly" [autoFocus]="true" |
| 56 | (ngModelChange)="handleChange($event)"></ngx-codemirror> |
| 57 | </div> |
| 58 | <ng-template #noData> |
| 59 | {{'NODATAERROR' | translate}} |
| 60 | </ng-template> |
| 61 | <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader> |