2 ================================================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ================================================================================
21 <div ng-controller="AdminMenuEditController" >
22 <div class="pageTitle">
24 <h1 class="heading1" style="margin-left:0px">Admin Menu Items</h1>
26 <div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
27 <strong>Add menu item here:</strong>
30 <a ng-click="addNewFnMenuItemModalPopup();" class="ion-android-apps" style="font-size:40px;" ></a>
33 <div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
34 <strong>Existing menu items:</strong>
40 <div style="width: 30%;">
43 <div style="width: 60%;">
44 <td>Number of records to show:</td>
47 <div style="width: 40%;">
48 <input type="text" id="numberOfRecordstoShow" name="numberOfRecordstoShow" ng-model="numberOfRecordstoShow">
57 <div class="scrolling-table" style="width: 100%;">
58 <table att-table table-data="fnMenuItems" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
61 <th att-table-header sortable="true" key="id" default-sort="a">Menu ID</th>
62 <th att-table-header sortable="true" key="label">Label</th>
63 <th att-table-header sortable="true" key="ParentId">ParentId</th>
64 <th att-table-header sortable="true" key="sortOrder">Sort Order</th>
65 <th att-table-header sortable="true" key="action">Action</th>
66 <th att-table-header sortable="true" key="functionCd">Function</th>
67 <th att-table-header sortable="true" key="active">Active</th>
68 <th att-table-header sortable="true" key="servlet">Servlet</th>
69 <th att-table-header sortable="true" key="queryString">Query String</th>
70 <th att-table-header sortable="true" key="externalUrl">External URL</th>
71 <th att-table-header sortable="true" key="target">Target</th>
72 <th att-table-header sortable="true" key="menuSetCode">Menu Set Code</th>
73 <th att-table-header sortable="true" key="separator">Separator</th>
74 <th att-table-header sortable="true" key="imageSrc">Image Source</th>
76 <th att-table-header sortable="false" key="edit">Edit</th>
77 <th att-table-header sortable="false" key="delete">Delete</th>
80 <tbody att-table-row type="body" >
82 <td id="att-scroll-table-content" att-scrollbar style="width: 86.5%;padding-right:1%;">
83 <table att-table table-data="fnMenuItems" border="1" view-per-page="scrollViewsPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
84 <tbody att-table-row type="body" row-repeat="fnMenuItem in fnMenuItems | limitTo : numberOfRecordstoShow">
86 <td att-table-body width="1%" >{{ fnMenuItem.id }}</td>
87 <td att-table-body width="3%" align="left" style="word-break:break-all;">{{ fnMenuItem.label }}</td>
88 <td att-table-body width="1%" align="left">{{ fnMenuItem.parentId }}</td>
89 <td att-table-body width="1%" align="left">{{ fnMenuItem.sortOrder }}</td>
90 <td att-table-body width="3%" style="word-break:break-all;">{{ fnMenuItem.action }}</td>
91 <td att-table-body width="1%" style="word-break:break-all;">{{ fnMenuItem.functionCd }}</td>
92 <td att-table-body width="1%" style="word-break:break-all;" align="left">{{ fnMenuItem.active ? "Y" : "N"}}</td>
93 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.servlet }}</td>
94 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.queryString }}</td>
95 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.externalUrl }}</td>
96 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.target }}</td>
97 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.menuSetCode }}</td>
98 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.separator ? "Y" : "N"}}</td>
99 <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.imageSrc }}</td>
101 <td att-table-body width="1%" align="right">
102 <div ng-click="editMenuItemModalPopup(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="icon-edit"></a></div>
104 <td att-table-body width="1%" align="right">
105 <div ng-click="removeMenuItem(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="icon-trash"></a></div>
119 <br><br><br><br><br><br><br><br><br><br><br><br>
122 <div id="menusTable" title="Menu Items">
123 <table att-table table-data="fnMenuItems" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
124 <thead att-table-row type="header">
126 <th att-table-header sortable="true" key="id" default-sort="a">Menu ID</th>
127 <th att-table-header sortable="true" key="label">Label</th>
128 <th att-table-header sortable="true" key="ParentId">ParentId</th>
129 <th att-table-header sortable="true" key="sortOrder">Sort Order</th>
130 <th att-table-header sortable="true" key="action">Action</th>
131 <th att-table-header sortable="true" key="functionCd">Function</th>
132 <th att-table-header sortable="true" key="active">Active</th>
133 <th att-table-header sortable="true" key="servlet">Servlet</th>
134 <th att-table-header sortable="true" key="queryString">Query String</th>
135 <th att-table-header sortable="true" key="externalUrl">External URL</th>
136 <th att-table-header sortable="true" key="target">Target</th>
137 <th att-table-header sortable="true" key="menuSetCode">Menu Set Code</th>
138 <th att-table-header sortable="true" key="separator">Separator</th>
139 <th att-table-header sortable="true" key="imageSrc">Image Source</th>
141 <th att-table-header sortable="false" key="edit">Edit</th>
142 <th att-table-header sortable="false" key="delete">Delete</th>
145 <tbody att-table-row type="body" row-repeat="fnMenuItem in fnMenuItems | limitTo : numberOfRecordstoShow">
147 <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.id"></td>
148 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.label"></td>
149 <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.parentId"></td>
150 <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.sortOrder"></td>
151 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.action"></td>
152 <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.functionCd"></td>
153 <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.active ? 'Y' : 'N'"></td>
154 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.servlet"></td>
155 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.queryString"></td>
156 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.externalUrl"></td>
157 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.target"></td>
158 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.menuSetCode"></td>
159 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.separator ? 'Y' : 'N'"></td>
160 <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.imageSrc"></td>
162 <td att-table-body width="1%">
163 <div ng-click="editMenuItemModalPopup(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-edit"></a></div>
165 <td att-table-body width="1%">
166 <div ng-click="removeMenuItem(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-trash-b"></a></div>