Added new componetnts inside page modules
[portal.git] / portal-FE-common / src / app / pages / scheduler / scheduler.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12
13               http://www.apache.org/licenses/LICENSE-2.0
14
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25
26               https://creativecommons.org/licenses/by/4.0/
27
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33
34   ============LICENSE_END============================================
35
36 -->
37
38 <div class="container">
39   <!--Modal Headers-->
40  <div class="modal-header">
41    <h4 class="modal-title">Scheduler Change</h4>
42    <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
43      <span aria-hidden="true">&times;</span>
44    </button>
45  </div>
46   <!--Modal Body goes here-->
47  <div class="modal-body">
48    <div class="application-details-modal">
49      <div class="app-properties-main" scroll-top="appDetails.scrollApi">
50      <form name="appForm" novalidate autocomplete="off">
51        <div id="app-left-container" class="left-container">
52          <div class="property-label checkbox-label">
53             <mat-radio-group aria-label="Select an option" [(ngModel)]="schedulerForm.checkboxSelection" name="range">
54               <mat-radio-button *ngFor="let opt of ranges" [value]="opt.value">{{opt.labelValue }} &nbsp;
55               </mat-radio-button>
56             </mat-radio-group>
57          </div>
58
59          <div class="property required">
60             <mat-form-field>
61                 <input id="startDate" name="startDate" matInput [matDatepicker]="startDatepicker" [(ngModel)]="schedulerForm.fromDate" placeholder="Choose start date">
62                 <mat-datepicker-toggle matSuffix [for]="startDatepicker"></mat-datepicker-toggle>
63                 <mat-datepicker #startDatepicker></mat-datepicker>
64               </mat-form-field>
65               &nbsp;
66               <mat-form-field>
67                   <input id="endDate" name="endDate" matInput [matDatepicker]="endDatepicker" [(ngModel)]="schedulerForm.toDate" placeholder="Choose end date">
68                   <mat-datepicker-toggle name="endDatePickToggle" matSuffix [for]="endDatepicker"></mat-datepicker-toggle>
69                   <mat-datepicker #endDatepicker></mat-datepicker>
70               </mat-form-field>
71
72          </div>
73          <mat-form-field>
74           <div id="duration-Type-label" class="property-label">
75               Please Select Option For Duration and FallBack</div>
76           <!--<mat-label> select </mat-label>-->
77           <mat-select name="dType" [(ngModel)]="schedulerForm.durationType">
78             <mat-option *ngFor="let dType of timeUnit" [value]="dType">
79               {{dType.text}}</mat-option>
80           </mat-select>
81         </mat-form-field>
82
83          <div class="property">
84              <div id="duration-label" class="property-label">Duration</div>
85              <input id="duration" name="duration" [(ngModel)]="schedulerForm.duration" maxlength="256" />
86
87              <div id="duration-label" class="property-label">Fallback Duration</div>
88              <input id="fallBackDuration" name="fallBackDuration" [(ngModel)]="schedulerForm.fallbackDuration" maxlength="256" />
89
90              <div id="duration-label" class="property-label">Concurrency Limit</div>
91              <input id="concurrencyLimit" name="concurrencyLimit" [(ngModel)]="schedulerForm.concurrencyLimit" maxlength="256" />
92
93          </div>
94
95          <mat-form-field>
96           <mat-label> Select policy </mat-label>
97           <mat-select name="policy" [(ngModel)]="schedulerForm.policyName" style="width:500px;">
98
99             <mat-option *ngFor="let policy of policys" [value]="policy.policyName" style="width:500px;">
100               {{policy.policyName}}
101             </mat-option>
102           </mat-select>
103         </mat-form-field>
104
105        </div>
106
107      </form>
108      </div>
109    </div>
110   </div>
111   <div class="modal-footer">
112    <button type="button" class="btn btn-primary" (click)="sendSchedulerReq()">Schedule</button> &nbsp;
113  <!--  <button type="button" class="btn btn-primary" (click)="submit()">Schedule</button> &nbsp;-->
114    <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Cancel</button>
115  </div>
116 </div>