Feature-9518: Scale-in/Scale-out commands triggered from the UI
[osm/NG-UI.git] / src / app / utilities / scaling / ScalingComponent.html
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">{{ 'SCALING' | 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 <form [formGroup]="scalingForm" (ngSubmit)="manualScalingTrigger()" autocomplete="off">
25 <div class="modal-body">
26 <div class="form-group row">
27 <label class="col-sm-12 col-form-label mandatory-label"
28 [ngClass]="{'text-danger': scalingForm.invalid === true && submitted === true}">
29 {{'MANDATORYCHECK' | translate}}
30 </label>
31 <div class="col-sm-12">
32 <ng-select formControlName="memberIndex" [clearable]="false"
33 (change)="getScalingGroupDescriptorName($event.name)" placeholder="Select Member VNF Index *"
34 [items]="memberVNFIndex" bindLabel="id" bindValue="id"
35 [ngClass]="{ 'is-invalid': submitted && f.memberIndex.errors }">
36 </ng-select>
37 <small class="form-text text-muted" *ngIf="selectedVNFID !== ''">vnfd-id : {{ selectedVNFID }}</small>
38 </div>
39 </div>
40 <div class="form-group row">
41 <div class="col-sm-12">
42 <ng-select formControlName="scalingname" [clearable]="false" placeholder="Select scaling-aspect *"
43 [items]="scalingGroup" bindLabel="name" bindValue="id"
44 [ngClass]="{ 'is-invalid': submitted && f.scalingname.errors }">
45 </ng-select>
46 </div>
47 </div>
48 <div class="form-group row">
49 <div class="col-sm-12">
50 <ng-select formControlName="scaleType" [clearable]="false" placeholder="Select Scale Type *"
51 [items]="scaleTypes" bindLabel="name" bindValue="id"
52 [ngClass]="{ 'is-invalid': submitted && f.scaleType.errors }">
53 </ng-select>
54 </div>
55 </div>
56 </div>
57 <div class="modal-footer">
58 <button type="button" (click)="activeModal.close()" class="btn btn-danger">{{'CANCEL' | translate}}</button>
59 <button type="submit" class="btn btn-primary">{{'APPLY' | translate }}</button>
60 </div>
61 </form>
62 <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader>