blob: 0d66e0fd2190a3fdd299fe88211044d985f3e3ef [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301<!--
2Copyright 2020 TATA ELXSI
3
4Licensed under the Apache License, Version 2.0 (the 'License');
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15
16Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17-->
18<form [formGroup]="packagesForm" (ngSubmit)="createPackages()" autocomplete="off">
19 <div class="modal-header">
20 <h4 class="modal-title" id="modal-basic-title">{{'CREATEPACKAGE' | translate}}</h4>
21 <button class="button-xs" type="button" class="close" (click)="activeModal.close()">
22 <i class="fas fa-times-circle text-danger"></i>
23 </button>
24 </div>
25 <div class="modal-body">
26 <div class="form-group row">
27 <label class="col-sm-12 col-form-label mandatory-label" [ngClass]="{'text-danger': packagesForm.invalid === true && submitted === true}">{{'MANDATORYCHECK' | translate}}</label>
28 <label class="col-sm-6 col-form-label">{{'PACKAGE' | translate}} {{'NAME' | translate}}*</label>
29 <div class="col-sm-6">
30 <input type="text" class="form-control" placeholder="{{'PACKAGE' | translate}} {{'NAME' | translate}}"
31 formControlName="name" id="name" [ngClass]="{ 'is-invalid': submitted && f.name.errors }" required>
32 </div>
33 </div>
34 </div>
35 <div class="modal-footer">
36 <button type="button" class="btn btn-danger" (click)="activeModal.close()">{{'CANCEL' | translate}}</button>
37 <button type="submit" class="btn btn-primary">{{'CREATE' | translate}}</button>
38 </div>
39</form>
40<app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader>