aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/fusion/scripts/view-models/profile-page/popup_modal_fn_menu_add.html
blob: 760f10b55f7e79659e0392645b7fee11f3284dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!--
  ================================================================================
  eCOMP Portal SDK
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ================================================================================
  -->
<script type="text/ng-template" id="fn_menu_add_popup.html">
          <div class="modal__informative font-showcase" style="width:1100px;">
            <div class="modal__header">
                <h2 class="font-showcase-font-name" style="width: 500px;">{{label}}</h2>
            </div>
            <div class="divider-container"><hr> </div>
		      
            <div class="modal__content" > 
				<table>
					<tr>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Label:</label><br>
								<input id="popupAddMenuItemLabel" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.label" maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" style = "display:none" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Parent:</label><br>
								<input id="popupAddMenuItemParentId" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.parentId" ng-disabled="disableParentId" maxlength="30" /> 
							</div>
							<div class="fn-ebz-container" ng-init="getParentData();">
  								<form name="parentListForm">
    							<label class="fn-ebz-text-label" for="parentSelect"><sup><b>*</b></sup>Parent:</label><br>
								<select name="select_projects" id="select_projects" ng-model="addFnMenuItem.parentId">
									<optgroup label="" ng-repeat="header in childListSelectData">
										<option label="{{header.label}}" value="{{header.menuId}}" style="color:black;font-weight:bold;">{{header.label}}</option>	
        									<option  ng-repeat="child in header.children" value="{{child.menuId}}" "{{(addFnMenuItem.parentId===child.menuId) ? 'selected' : '' }}">{{child.label}}</option>
									</optgroup>
								</select>
								<!--
    							<select class="form-field" name="parentSelect" id="parentSelect" ng-model="addFnMenuItem.parentId">
								<option>{{getParentLabel(addFnMenuItem.parentId, parentListSelectData)}}</option>
      							<option ng-repeat="option in parentListSelectData" value="{{option[0]}}" "{{(addFnMenuItem.parentId===option[0]) ? 'selected' : '' }}">{{option[1]}}</option>
    							</select>
								-->
  								</form>
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Sort Order:</label><br>
								<input id="popupAddMenuItemSortOrder" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.sortOrder" ng-disabled="disableSortOrder"	maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Action:</label><br>
								<input id="popupAddMenuItemAction" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.action" ng-disabled="disableAction" maxlength="200" /> 
					        </div>
						</td>		
					</tr>
					
					<tr>
						<td>
							<div class="fn-ebz-container" ng-init="getFunctionCDselectData();">
  								<form name="functionCDform">
    							<label class="fn-ebz-text-label" for="repeatSelect"><sup><b>*</b></sup>Function:</label><br>
    							<select class="form-field" name="repeatSelect" id="repeatSelect" ng-model="addFnMenuItem.functionCd">
								<option>{{addFnMenuItem.functionCd}}</option>
      							<option ng-repeat="option in functionCDselectData" value="{{option}}" >{{option}}</option>
    							</select>
  								</form>
							</div>
						</td>
						<td>
						<div class="fn-ebz-container">
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Active:</label><br>
								<select class="form-field" name="selectActive" ng-model="addFnMenuItem.active">
  								<option ng-repeat="active in activeStatusOptions" value="{{active.value}}" ng-selected="{{active.value}}=={{addFnMenuItem.active}}" >{{active.title}}</option>
								</select>
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b></b></sup>Servlet:</label><br>
								<input id="popupAddMenuItemServlet" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.servlet" ng-disabled="disableServlet" maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b></b></sup>Query String:</label><br>
								<input id="popupAddMenuItemQueryString" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.queryString" ng-disabled="disableQueryString" maxlength="30" /> 
							</div>
						</td>
					</tr>
					
					<tr>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b></b></sup>External URL:</label><br>
								<input id="popupAddMenuItemExternalUrl" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.externalUrl" ng-disabled="disableExternalUrl" maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b></b></sup>Target:</label><br>
								<input id="popupAddMenuItemTarget" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.target" ng-disabled="disableTarget" maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Menu Set Code:</label><br>
								<input id="popupAddMenuItemMenuSetCode" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.menuSetCode" ng-disabled="disableMenuSetCode" maxlength="30" /> 
							</div>
						</td>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b>*</b></sup>Separator:</label><br>
								<select class="form-field" name="select" ng-model="addFnMenuItem.separator">
  								<option ng-repeat="separator in separatorStatusOptions" value="{{separator.value}}" ng-selected="{{separator.value}}=={{addFnMenuItem.separator}}" >{{separator.title}}</option>
								</select>
							</div>
						</td>
					</tr>
					
					<tr>
						<td>
							<div class="fn-ebz-container" >
								<label class="fn-ebz-text-label"><sup><b></b></sup>Image Source:</label><br>
								<input id="popupAddMenuItemImageSrc" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.imageSrc" ng-disabled="disableImageSrc" maxlength="30" /> 
							</div>
						</td>
					</tr>
				</table>
            </div>
                <button class="button button--primary button--small" herf="javascript:void(0)" ng-click="updateFnMenu(addFnMenuItem);">Save</button>
				<button class="button button--primary button--small" herf="javascript:void(0)" ng-click="close()">Close</button>
			<!--
            <div class="modal__footer">
            </div>
			-->
        </div>
</script>