b1c9135aa50678e71e25e582c98826490d8f40c7
[portal/sdk.git] /
1 <script type="text/ng-template" id="fn_menu_add_popup.html">
2           <div class="modal__informative font-showcase" style="width:1100px;">
3             <div class="modal__header">
4                 <h2 class="font-showcase-font-name" style="width: 500px;">{{label}}</h2>
5             </div>
6             <div class="divider-container"><hr> </div>
7                       
8             <div class="modal__content" > 
9                                 <table>
10                                         <tr>
11                                                 <td>
12                                                         <div class="fn-ebz-container" >
13                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Label:</label><br>
14                                                                 <input id="popupAddMenuItemLabel" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.label" maxlength="30" /> 
15                                                         </div>
16                                                 </td>
17                                                 <td>
18                                                         <div class="fn-ebz-container" style = "display:none" >
19                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Parent:</label><br>
20                                                                 <input id="popupAddMenuItemParentId" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.parentId" ng-disabled="disableParentId" maxlength="30" /> 
21                                                         </div>
22                                                         <div class="fn-ebz-container" ng-init="getParentData();">
23                                                                 <form name="parentListForm">
24                                                         <label class="fn-ebz-text-label" for="parentSelect"><sup><b>*</b></sup>Parent:</label><br>
25                                                                 <select name="select_projects" id="select_projects" ng-model="addFnMenuItem.parentId">
26                                                                         <optgroup label="" ng-repeat="header in childListSelectData">
27                                                                                 <option label="{{header.label}}" value="{{header.menuId}}" style="color:black;font-weight:bold;">{{header.label}}</option>      
28                                                                                 <option  ng-repeat="child in header.children" value="{{child.menuId}}" "{{(addFnMenuItem.parentId===child.menuId) ? 'selected' : '' }}">{{child.label}}</option>
29                                                                         </optgroup>
30                                                                 </select>
31                                                                 <!--
32                                                         <select class="form-field" name="parentSelect" id="parentSelect" ng-model="addFnMenuItem.parentId">
33                                                                 <option>{{getParentLabel(addFnMenuItem.parentId, parentListSelectData)}}</option>
34                                                         <option ng-repeat="option in parentListSelectData" value="{{option[0]}}" "{{(addFnMenuItem.parentId===option[0]) ? 'selected' : '' }}">{{option[1]}}</option>
35                                                         </select>
36                                                                 -->
37                                                                 </form>
38                                                         </div>
39                                                 </td>
40                                                 <td>
41                                                         <div class="fn-ebz-container" >
42                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Sort Order:</label><br>
43                                                                 <input id="popupAddMenuItemSortOrder" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.sortOrder" ng-disabled="disableSortOrder" maxlength="30" /> 
44                                                         </div>
45                                                 </td>
46                                                 <td>
47                                                         <div class="fn-ebz-container" >
48                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Action:</label><br>
49                                                                 <input id="popupAddMenuItemAction" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.action" ng-disabled="disableAction" maxlength="200" /> 
50                                                 </div>
51                                                 </td>           
52                                         </tr>
53                                         
54                                         <tr>
55                                                 <td>
56                                                         <div class="fn-ebz-container" ng-init="getFunctionCDselectData();">
57                                                                 <form name="functionCDform">
58                                                         <label class="fn-ebz-text-label" for="repeatSelect"><sup><b>*</b></sup>Function:</label><br>
59                                                         <select class="form-field" name="repeatSelect" id="repeatSelect" ng-model="addFnMenuItem.functionCd">
60                                                                 <option>{{addFnMenuItem.functionCd}}</option>
61                                                         <option ng-repeat="option in functionCDselectData" value="{{option}}" >{{option}}</option>
62                                                         </select>
63                                                                 </form>
64                                                         </div>
65                                                 </td>
66                                                 <td>
67                                                 <div class="fn-ebz-container">
68                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Active:</label><br>
69                                                                 <select class="form-field" name="selectActive" ng-model="addFnMenuItem.active">
70                                                                 <option ng-repeat="active in activeStatusOptions" value="{{active.value}}" ng-selected="{{active.value}}=={{addFnMenuItem.active}}" >{{active.title}}</option>
71                                                                 </select>
72                                                         </div>
73                                                 </td>
74                                                 <td>
75                                                         <div class="fn-ebz-container" >
76                                                                 <label class="fn-ebz-text-label"><sup><b></b></sup>Servlet:</label><br>
77                                                                 <input id="popupAddMenuItemServlet" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.servlet" ng-disabled="disableServlet" maxlength="30" /> 
78                                                         </div>
79                                                 </td>
80                                                 <td>
81                                                         <div class="fn-ebz-container" >
82                                                                 <label class="fn-ebz-text-label"><sup><b></b></sup>Query String:</label><br>
83                                                                 <input id="popupAddMenuItemQueryString" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.queryString" ng-disabled="disableQueryString" maxlength="30" /> 
84                                                         </div>
85                                                 </td>
86                                         </tr>
87                                         
88                                         <tr>
89                                                 <td>
90                                                         <div class="fn-ebz-container" >
91                                                                 <label class="fn-ebz-text-label"><sup><b></b></sup>External URL:</label><br>
92                                                                 <input id="popupAddMenuItemExternalUrl" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.externalUrl" ng-disabled="disableExternalUrl" maxlength="30" /> 
93                                                         </div>
94                                                 </td>
95                                                 <td>
96                                                         <div class="fn-ebz-container" >
97                                                                 <label class="fn-ebz-text-label"><sup><b></b></sup>Target:</label><br>
98                                                                 <input id="popupAddMenuItemTarget" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.target" ng-disabled="disableTarget" maxlength="30" /> 
99                                                         </div>
100                                                 </td>
101                                                 <td>
102                                                         <div class="fn-ebz-container" >
103                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Menu Set Code:</label><br>
104                                                                 <input id="popupAddMenuItemMenuSetCode" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.menuSetCode" ng-disabled="disableMenuSetCode" maxlength="30" /> 
105                                                         </div>
106                                                 </td>
107                                                 <td>
108                                                         <div class="fn-ebz-container" >
109                                                                 <label class="fn-ebz-text-label"><sup><b>*</b></sup>Separator:</label><br>
110                                                                 <select class="form-field" name="select" ng-model="addFnMenuItem.separator">
111                                                                 <option ng-repeat="separator in separatorStatusOptions" value="{{separator.value}}" ng-selected="{{separator.value}}=={{addFnMenuItem.separator}}" >{{separator.title}}</option>
112                                                                 </select>
113                                                         </div>
114                                                 </td>
115                                         </tr>
116                                         
117                                         <tr>
118                                                 <td>
119                                                         <div class="fn-ebz-container" >
120                                                                 <label class="fn-ebz-text-label"><sup><b></b></sup>Image Source:</label><br>
121                                                                 <input id="popupAddMenuItemImageSrc" type="text" class="fn-ebz-text" ng-model="addFnMenuItem.imageSrc" ng-disabled="disableImageSrc" maxlength="30" /> 
122                                                         </div>
123                                                 </td>
124                                         </tr>
125                                 </table>
126             </div>
127                 <button class="button button--primary button--small" herf="javascript:void(0)" ng-click="updateFnMenu(addFnMenuItem);">Save</button>
128                                 <button class="button button--primary button--small" herf="javascript:void(0)" ng-click="close()">Close</button>
129                         <!--
130             <div class="modal__footer">
131             </div>
132                         -->
133         </div>
134 </script>
135
136