Fix mod ui build issues
[dcaegen2/platform.git] / mod2 / ui / src / app / ms-instance-add / ms-instance-add.component.html
1 <!-- 
2   # ============LICENSE_START=======================================================
3   # Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
4   # ================================================================================
5   # Licensed under the Apache License, Version 2.0 (the "License");
6   # you may not use this file except in compliance with the License.
7   # You may obtain a copy of the License at
8   #
9   #      http://www.apache.org/licenses/LICENSE-2.0
10   #
11   # Unless required by applicable law or agreed to in writing, software
12   # distributed under the License is distributed on an "AS IS" BASIS,
13   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   # See the License for the specific language governing permissions and
15   # limitations under the License.
16   # ============LICENSE_END=========================================================
17  -->
18
19 <p-dialog [(visible)]="visible" [header]="guiHeader" appendTo="body" [modal]="true" [transitionOptions]="'300ms'" [style]="{width: '720px'}" [baseZIndex]="10000"
20           [closable]="false" (onHide)="closeDialog()">
21
22     <!-- "Add / Change MS Instance" Error Message -->
23     <p-toast key="instanceAddChangeError"></p-toast>
24
25     <form [formGroup]="msInstanceAddForm">
26         <!-- * * * Name * * * -->
27         <div class="input">
28             <label class="inputLabel">MS Name</label>
29             <b>{{msName}}</b>
30         </div>
31         <!-- * * * Release * * * -->
32         <div class="input">
33             <label class="inputLabel">Release<span style="color:red">*</span></label>
34             <p-dropdown [options]="msInstanceReleases" placeholder="Select Release" formControlName="release"></p-dropdown>
35         </div>
36         <!-- * * * Scrum Lead / UID * * * -->
37         <div class="input">
38             <label class="inputLabel">Scrum Lead/UID</label>
39             <input class="inputFieldLg" type="text" pInputText formControlName="scrumLead" /> / <input class="inputFieldXSm" type="text" pInputText formControlName="scrumLeadId" />
40         </div>
41         <!-- * * * Systems Engineer / UID * * * -->
42         <div class="input">
43             <label class="inputLabel">Systems Engineer/UID</label>
44             <input class="inputFieldLg" type="text" pInputText formControlName="systemsEngineer" /> / <input class="inputFieldXSm" type="text" pInputText formControlName="systemsEngineerId" />
45         </div>
46         <!-- * * * Developer / UID * * * -->
47         <div class="input">
48             <label class="inputLabel">Developer<span style="color:red">*</span>/UID<span style="color:red">*</span></label>
49             <input class="inputFieldLg" type="text" pInputText formControlName="developer" /> / <input class="inputFieldXSm" type="text" pInputText formControlName="developerId" />
50         </div>
51         <!-- * * * PST Due Date * * * -->
52         <div class="input">
53             <label class="inputLabel">PST Due Date</label>
54             <p-calendar appendTo="body" [baseZIndex]="10001" dateFormat="yy-mm-dd" formControlName="pstDueDate" [showIcon]="true"></p-calendar>
55         </div>
56         <!-- * * * PST Due Iteration * * * -->
57         <div class="input">
58             <label class="inputLabel">PST Due Iteration</label>
59             <input class="inputFieldSm" type="text" pInputText formControlName="pstDueIteration" />
60         </div>
61         <!-- * * * ETE Due Date * * * -->
62         <div class="input">
63             <label class="inputLabel">ETE Due Date</label>
64             <p-calendar appendTo="body" [baseZIndex]="10001" dateFormat="yy-mm-dd" formControlName="eteDueDate" [showIcon]="true"></p-calendar>
65         </div>
66         <!-- * * * ETE Due Iteration * * * -->
67         <div class="input">
68             <label class="inputLabel">ETE Due Iteration</label>
69             <input class="inputFieldSm" type="text" pInputText formControlName="eteDueIteration" />
70         </div>
71         <!-- * * * Labels * * * -->
72         <div class="input">
73             <label class="inputLabel">Labels</label>
74             <input class="inputFieldLg" type="text" pInputText formControlName="labels" />
75         </div>
76         <span style="padding: 0px 0px 0px 188px; font-size: 13px;">(Separate labels with a space)</span>
77         <!-- * * * Notes * * * -->
78         <div class="input">
79             <label class="inputLabel" style="vertical-align: top">Notes</label>
80             <textarea class="inputFieldLg" [rows]="1" [cols]="30" pInputTextarea autoResize="autoResize" formControlName="notes"></textarea>
81         </div>
82
83         <!-- * * * ADD and Cancel buttons * * * -->
84         <div style="float: right; padding: 10px 25px 5px;">
85             <button pButton type="button" (click)="closeDialog()" label="Cancel"></button>&nbsp;
86             <button pButton type="submit" (click)="submitMsInstance()" class="ui-button-success" [label]="addOrUpdate" style="width: 77px"
87                 [disabled]="!msInstanceAddForm.valid ||
88                             !msInstanceAddForm.value['developer'].trim() ||
89                             !msInstanceAddForm.value['developerId'].trim()"></button>
90         </div>
91     </form>
92
93 </p-dialog>