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
9 # http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
19 <p-dialog [(visible)]="visible" [header]="guiHeader" appendTo="body" [modal]="true" [transitionOptions]="'300ms'" [style]="{width: '720px'}" [baseZIndex]="10000"
20 [closable]="false" (onHide)="closeDialog()">
22 <!-- "Add / Change MS Instance" Error Message -->
23 <p-toast key="instanceAddChangeError"></p-toast>
25 <form [formGroup]="msInstanceAddForm">
26 <!-- * * * Name * * * -->
28 <label class="inputLabel">MS Name</label>
31 <!-- * * * Release * * * -->
33 <label class="inputLabel">Release<span style="color:red">*</span></label>
34 <p-dropdown [options]="msInstanceReleases" placeholder="Select Release" formControlName="release"></p-dropdown>
36 <!-- * * * Scrum Lead / UID * * * -->
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" />
41 <!-- * * * Systems Engineer / UID * * * -->
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" />
46 <!-- * * * Developer / UID * * * -->
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" />
51 <!-- * * * PST Due Date * * * -->
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>
56 <!-- * * * PST Due Iteration * * * -->
58 <label class="inputLabel">PST Due Iteration</label>
59 <input class="inputFieldSm" type="text" pInputText formControlName="pstDueIteration" />
61 <!-- * * * ETE Due Date * * * -->
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>
66 <!-- * * * ETE Due Iteration * * * -->
68 <label class="inputLabel">ETE Due Iteration</label>
69 <input class="inputFieldSm" type="text" pInputText formControlName="eteDueIteration" />
71 <!-- * * * Labels * * * -->
73 <label class="inputLabel">Labels</label>
74 <input class="inputFieldLg" type="text" pInputText formControlName="labels" />
76 <span style="padding: 0px 0px 0px 188px; font-size: 13px;">(Separate labels with a space)</span>
77 <!-- * * * Notes * * * -->
79 <label class="inputLabel" style="vertical-align: top">Notes</label>
80 <textarea class="inputFieldLg" [rows]="1" [cols]="30" pInputTextarea autoResize="autoResize" formControlName="notes"></textarea>
83 <!-- * * * ADD and Cancel buttons * * * -->
84 <div style="float: right; padding: 10px 25px 5px;">
85 <button pButton type="button" (click)="closeDialog()" label="Cancel"></button>
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>