Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / view-models / profile-page / admin_menu_edit.html
1 <!--
2   ================================================================================
3   eCOMP Portal SDK
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
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
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   ================================================================================
19   -->
20
21 <div ng-controller="AdminMenuEditController" >
22         <div class="pageTitle">
23                 <br>
24             <h1 class="heading1" style="margin-left:0px">Admin Menu Items</h1>
25             <br/>
26         <div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
27                 <strong>Add menu item here:</strong>
28         </div>
29                 <br/>
30             <a ng-click="addNewFnMenuItemModalPopup();" class="ion-android-apps" style="font-size:40px;" ></a>
31         </div>
32         <br>
33         <div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
34                 <strong>Existing menu items:</strong>
35         </div>
36         <br>
37
38
39
40 <div style="width: 30%;">
41 <table>
42   <tr>
43   <div style="width: 60%;">
44     <td>Number of records to show:</td>
45   </div>
46     <td>
47             <div style="width: 40%;">
48                 <input type="text" id="numberOfRecordstoShow" name="numberOfRecordstoShow" ng-model="numberOfRecordstoShow">
49             </div>
50     </td>
51   </tr>
52 </table>        
53   
54 </div> 
55
56 <!--  freeze header
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">
59                         <thead  att-table-row>
60                                 <tr align="left">
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>     
75
76                     <th att-table-header sortable="false"  key="edit">Edit</th>
77                     <th att-table-header sortable="false" key="delete">Delete</th>       
78                         </tr>
79                         </thead>
80         <tbody att-table-row type="body" >
81             <tr>
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">
85                             <tr align="left">
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>
100                                         
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>
103                                     </td>                               
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>
106                                 </td>
107
108                             </tr>
109                         </tbody>
110                     </table>
111                 </td>
112             </tr>
113         </tbody>
114     </table>
115 </div>
116
117  
118
119 <br><br><br><br><br><br><br><br><br><br><br><br>
120   
121 -->
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">
125                                 <tr>
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>     
140
141                     <th att-table-header sortable="false" key="edit">Edit</th>
142                     <th att-table-header sortable="false" key="delete">Delete</th>       
143                         </tr>
144                         </thead>
145                         <tbody att-table-row type="body" row-repeat="fnMenuItem in fnMenuItems | limitTo : numberOfRecordstoShow">
146                                 <tr>
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>
161                                         
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>
164                                     </td>                               
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>
167                                 </td>   
168                             </tr>
169                         </tbody>
170                         
171                 </table>
172         </div>  
173
174
175 </div>