Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / admportal / views / ucpe / servicePort.ejs
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4   <meta charset="UTF-8" />
5   <meta http-equiv="X-UA-Compatible" content="IE=edge">
6   <% include ../partials/head %>
7   <% include ../partials/header %>
8   <script type="text/javascript" src="/javascripts/admportal.js" async></script>
9   <title>SDN-C AdminPortal</title>
10 <script class="init">
11     $(document).ready(function() {
12     $('#service_port').DataTable( {
13         "order": [[ 0, "asc" ]]
14     } );
15 } );
16 </script>
17
18 </head>
19 <body>
20
21 <div class="well well-sm">
22 <h3>uCPE Service Port</h3>
23 </div>
24
25 <% if ( typeof result != 'undefined' ) {
26         if (result.code.length > 0) {
27             if ( result.code == 'success' ) { %>
28                 <div class='alert alert-success' role='alert'>
29                 <%
30                 for ( x in result.msg ){ %>
31                     <div><%= result.msg[x] %></div>
32                 <% } %>
33                 </div>
34             <% } else { %>
35                 <div class='alert alert-danger' role='danger'>
36                 <%
37                 for ( x in result.msg ){ %>
38                     <div><%= result.msg[x] %></div>
39                 <% } %>
40                 </div>
41             <% } %>
42         <% } %>
43 <% } %>
44
45 <% if( typeof privilege != 'undefined'){
46     var priv = privilege.privilege;
47 } else {
48     var priv = 'A';
49 } %>
50
51
52 <div class="container-fluid">
53
54         <table id="service_port" class="table table-hover table-condensed">
55     <thead>
56         <tr>
57                   <th>*DEVICE_VENDOR_NAME</th>
58                   <th>*DEVICE_MODEL</th>
59                   <th>*SERVICE_PORT_NAME</th>
60                   <th>PHYSICAL_PORT_NAME</th>
61                   <th>PHYSICAL_SPEED</th>
62                   <th>PHYSICAL_SPEED_UNITS</th>
63         </tr>
64     </thead>
65         <tbody>
66     <% rows.forEach( function(row) { %>
67         <tr>
68             <td><%= row.device_vendor_name %></td>
69             <td><%= row.device_model %></td>
70             <td><%= row.service_port_name %></td>
71             <td><%= row.physical_port_name %></td>
72             <td><%= row.physical_speed %></td>
73             <td><%= row.physical_speed_units %></td>
74         </tr>
75     <% }); %>
76     </tbody>
77     </table>
78
79 </div>
80
81 <footer>
82     <% include ../partials/footer %>
83 </footer>
84
85
86 </body>
87 </html>
88