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>
6 <div class="divider-container"><hr> </div>
8 <div class="modal__content" >
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" />
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" />
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>
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>
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" />
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" />
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>
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>
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" />
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" />
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" />
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" />
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" />
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>
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" />
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>
130 <div class="modal__footer">