aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/fusion/scripts/view-models/profile-page/admin_menu_edit.html
blob: ee23635fa824533708f5d2411a9f921b003258db (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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!--
  ================================================================================
  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.
  ================================================================================
  -->

<div ng-controller="AdminMenuEditController" >
	<div class="pageTitle">
		<br>
	    <h1 class="heading1" style="margin-left:0px">Admin Menu Items</h1>
	    <br/>
	<div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
		<strong>Add menu item here:</strong>
	</div>
		<br/>
	    <a ng-click="addNewFnMenuItemModalPopup();" class="ion-android-apps" style="font-size:40px;" ></a>
	</div>
	<br>
	<div style="margin-right: 20px;text-align: justify;text-align-last:auto;">
		<strong>Existing menu items:</strong>
	</div>
	<br>



<div style="width: 30%;">
<table>
  <tr>
  <div style="width: 60%;">
    <td>Number of records to show:</td>
  </div>
    <td>
	    <div style="width: 40%;">
	    	<input type="text" id="numberOfRecordstoShow" name="numberOfRecordstoShow" ng-model="numberOfRecordstoShow">
	    </div>
    </td>
  </tr>
</table>	
  
</div> 

<!--  freeze header
<div class="scrolling-table" style="width: 100%;">
    <table  att-table table-data="fnMenuItems" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
			<thead  att-table-row>
				<tr align="left">
				<th att-table-header sortable="true" key="id" default-sort="a">Menu ID</th>
				<th att-table-header sortable="true" key="label">Label</th>
	            <th att-table-header sortable="true" key="ParentId">ParentId</th>
	            <th att-table-header sortable="true" key="sortOrder">Sort Order</th>
	            <th att-table-header sortable="true" key="action">Action</th>
	            <th att-table-header sortable="true" key="functionCd">Function</th>
	            <th att-table-header sortable="true" key="active">Active</th>
	            <th att-table-header sortable="true" key="servlet">Servlet</th>
	            <th att-table-header sortable="true" key="queryString">Query String</th>
	            <th att-table-header sortable="true" key="externalUrl">External URL</th> 
	            <th att-table-header sortable="true" key="target">Target</th>
	            <th att-table-header sortable="true" key="menuSetCode">Menu Set Code</th>
	            <th att-table-header sortable="true" key="separator">Separator</th>
	            <th att-table-header sortable="true" key="imageSrc">Image Source</th>     

	            <th att-table-header sortable="false"  key="edit">Edit</th>
	            <th att-table-header sortable="false" key="delete">Delete</th>       
		        </tr>
			</thead>
        <tbody att-table-row type="body" >
            <tr>
                <td id="att-scroll-table-content" att-scrollbar style="width: 86.5%;padding-right:1%;">
                    <table att-table table-data="fnMenuItems" border="1" view-per-page="scrollViewsPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
                        <tbody att-table-row type="body" row-repeat="fnMenuItem in fnMenuItems | limitTo : numberOfRecordstoShow">
                            <tr align="left">
	                <td att-table-body width="1%" >{{ fnMenuItem.id }}</td>
	                <td att-table-body width="3%" align="left" style="word-break:break-all;">{{ fnMenuItem.label }}</td>
				    <td att-table-body width="1%" align="left">{{ fnMenuItem.parentId }}</td>
				    <td att-table-body width="1%" align="left">{{ fnMenuItem.sortOrder }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;">{{ fnMenuItem.action }}</td>
				    <td att-table-body width="1%" style="word-break:break-all;">{{ fnMenuItem.functionCd }}</td>
				    <td att-table-body width="1%" style="word-break:break-all;" align="left">{{ fnMenuItem.active ? "Y" : "N"}}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.servlet }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.queryString }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.externalUrl }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.target }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.menuSetCode }}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.separator ? "Y" : "N"}}</td>
				    <td att-table-body width="3%" style="word-break:break-all;" align="left">{{ fnMenuItem.imageSrc }}</td>
					
				    <td att-table-body width="1%" align="right">
				    	<div ng-click="editMenuItemModalPopup(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="icon-edit"></a></div>
				    </td>				
					<td att-table-body width="1%" align="right">
			    		<div ng-click="removeMenuItem(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="icon-trash"></a></div>
			     	</td>

                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</div>

 

<br><br><br><br><br><br><br><br><br><br><br><br>
  
-->
	<div  id="menusTable" title="Menu Items">	
		<table att-table table-data="fnMenuItems" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
			<thead  att-table-row type="header">
				<tr>
				<th att-table-header sortable="true" key="id" default-sort="a">Menu ID</th>
				<th att-table-header sortable="true" key="label">Label</th>
	            <th att-table-header sortable="true" key="ParentId">ParentId</th>
	            <th att-table-header sortable="true" key="sortOrder">Sort Order</th>
	            <th att-table-header sortable="true" key="action">Action</th>
	            <th att-table-header sortable="true" key="functionCd">Function</th>
	            <th att-table-header sortable="true" key="active">Active</th>
	            <th att-table-header sortable="true" key="servlet">Servlet</th>
	            <th att-table-header sortable="true" key="queryString">Query String</th>
	            <th att-table-header sortable="true" key="externalUrl">External URL</th> 
	            <th att-table-header sortable="true" key="target">Target</th>
	            <th att-table-header sortable="true" key="menuSetCode">Menu Set Code</th>
	            <th att-table-header sortable="true" key="separator">Separator</th>
	            <th att-table-header sortable="true" key="imageSrc">Image Source</th>     

	            <th att-table-header sortable="false" key="edit">Edit</th>
	            <th att-table-header sortable="false" key="delete">Delete</th>       
		        </tr>
			</thead>
			<tbody att-table-row type="body" row-repeat="fnMenuItem in fnMenuItems | limitTo : numberOfRecordstoShow">
				<tr>
	                <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.id"></td>
	                <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.label"></td>
				    <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.parentId"></td>
				    <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.sortOrder"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.action"></td>
				    <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.functionCd"></td>
				    <td att-table-body width="1%" style="word-break:break-all;" ng-bind="fnMenuItem.active ? 'Y' : 'N'"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.servlet"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.queryString"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.externalUrl"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.target"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.menuSetCode"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.separator ? 'Y' : 'N'"></td>
				    <td att-table-body width="3%" style="word-break:break-all;" ng-bind="fnMenuItem.imageSrc"></td>
					
				    <td att-table-body width="1%">
				    	<div ng-click="editMenuItemModalPopup(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-edit"></a></div>
				    </td>				
					<td att-table-body width="1%">
			    		<div ng-click="removeMenuItem(fnMenuItem);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-trash-b"></a></div>
			     	</td>	
			    </tr>
			</tbody>
			
		</table>
	</div>	


</div>