2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 https://creativecommons.org/licenses/by/4.0/
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.
34 ============LICENSE_END============================================
38 <div class="container">
40 <div class="modal-header">
41 <h4 class="modal-title">{{(isEditMode) ? 'Edit Menu Item' : 'Add New Menu Item'}}</h4>
42 <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
43 <span aria-hidden="true">×</span>
47 <!--Modal Body goes here-->
48 <div class="modal-body">
49 <div class="elementsContainer">
50 <div class="groupItem">
51 <label class="item-label">*Label:</label><br>
52 <input [(ngModel)]="menu.label" type="text" name="label" id="label">
54 <div class="groupItem">
55 <label class="item-label">*Parent:</label><br>
56 <!-- <input [(ngModel)]="menu.parentId" type="text" name="parentId" id="parent"> -->
57 <select class="form-field" name="parentSelect" id="parentSelect" [(ngModel)]="menu.parentId">
58 <option>{{getParentLabel(menu.parentId, parentListSelectData)}}</option>
59 <option *ngFor="let option of parentListSelectData" value="{{option[0]}}">{{option[1]}}</option>
62 <div class="groupItem">
63 <label class="item-label">*Sort Order</label><br>
64 <input [(ngModel)]="menu.sortOrder" type="text" name="sortOrder" id="sortOrder">
66 <div class="groupItem">
67 <label class="item-label">*Action</label><br>
68 <input [(ngModel)]="menu.action" type="text" name="action" id="action">
74 <div class="elementsContainer">
75 <div class="groupItem">
76 <label class="item-label"><b>*</b>Function:</label><br>
77 <select class="form-field" name="repeatSelect" id="repeatSelect" [(ngModel)]="menu.functionCd">
78 <option>{{menu.functionCd}}</option>
79 <option *ngFor="let item of functionCDselectData" value="{{item}}" >{{item}}</option>
82 <div class="groupItem">
83 <label class="item-label"><b>*</b>Active:</label><br>
84 <select class="form-field" name="selectActive" ng-model="menu.active">
85 <option *ngFor="let active of activeStatusOptions" value="{{active.value}}">{{active.title}}</option>
88 <div class="groupItem">
89 <label class="item-label">Servlet:</label><br>
90 <input [(ngModel)]="menu.servlet" type="text" name="servlet" id="servlet">
92 <div class="groupItem">
93 <label class="item-label">Query String:</label><br>
94 <input [(ngModel)]="menu.queryString" type="text" name="queryString" id="queryString">
100 <div class="elementsContainer">
101 <div class="groupItem">
102 <label class="item-label">External URL:</label><br>
103 <input [(ngModel)]="menu.externalUrl" type="text" name="externalURL" id="externalURL">
105 <div class="groupItem">
106 <label class="item-label">Target:</label><br>
107 <input [(ngModel)]="menu.target" type="text" name="target" id="target">
109 <div class="groupItem">
110 <label class="item-label"><b>*</b>Menu Set Code:</label><br>
111 <input [(ngModel)]="menu.menuSetCode" type="text" name="menuSetCode" id="menuSetCode">
113 <div class="groupItem">
114 <label class="item-label"><b>*</b>Separator:</label><br>
115 <select class="form-field" name="select" ng-model="menu.separator">
116 <option *ngFor="let separator of separatorStatusOptions" value="{{separator.value}}">{{separator.title}}</option>
123 <div class="elementsContainer">
124 <div class="groupItem">
125 <label class="item-label">Image Source:</label><br>
126 <input [(ngModel)]="menu.imageSrc" type="text" name="imageSource" id="imageSource">
131 <!--Modal Footer goes Here-->
132 <div class="modal-footer">
133 <button type="button" class="btn btn-primary" (click)="updateFnMenu()">Save</button>
134 <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Cancel</button>