Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / admportal / views / ucpe / vnfModels.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     $('#vnf_models').DataTable( {
13         "order": [[ 0, "asc" ]]
14     } );
15 } );
16 </script>
17
18 </head>
19 <body>
20
21 <div class="well well-sm">
22 <h3>uCPE VNF Models</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 <!--
55          <% if (priv == 'A'){ %>
56     <div class="actions" style="padding:15px 0px;">
57     <button class="btn btn-primary" data-toggle="modal" data-target="#add_vnf_profile">
58       Add VNF Profile
59     </button>
60     </div>
61     <% } %>
62 -->
63
64         <table id="vnf_models" class="table table-hover table-condensed">
65     <thead>
66         <tr>
67                   <th>*ATT PART NUMBER</th>
68                   <th>VNF_TYPE</th>
69                   <th>VENDOR_NAME</th>
70                   <th>VENDOR_PART_NUMBER</th>
71                   <th>VENDOR_MODEL</th>
72                   <th>VCPU_DEFAULT</th>
73                   <th>VCPU_MIN</th>
74                   <th>VCPU_MAX</th>
75                   <th>VMEMORY_DEFAULT</th>
76                   <th>VMEMORY_UNITS</th>
77                   <th>VMEMORY_MIN</th>
78                   <th>VMEMORY_MAX</th>
79                   <th>VDISK_DEFAULT</th>
80                   <th>VDISK_UNITS</th>
81                   <th>VDISK_MIN</th>
82                   <th>VDISK_MAX</th>
83                   <th>SPEED_UNITS</th>
84                   <th>SPEED</th>
85         </tr>
86     </thead>
87         <tbody>
88     <% rows.forEach( function(row) { %>
89         <tr>
90             <td><%= row.att_part_number %></td>
91             <td><%= row.vnf_type %></td>
92             <td><%= row.vendor_name %></td>
93             <td><%= row.vendor_part_number %></td>
94             <td><%= row.vendor_model %></td>
95             <td><%= row.vcpu_default %></td>
96             <td><%= row.vcpu_min %></td>
97             <td><%= row.vcpu_max %></td>
98             <td><%= row.vmemory_default %></td>
99             <td><%= row.vmemory_units %></td>
100             <td><%= row.vmemory_min %></td>
101             <td><%= row.vmemory_max %></td>
102             <td><%= row.vdisk_default %></td>
103             <td><%= row.vdisk_units %></td>
104             <td><%= row.vdisk_min %></td>
105             <td><%= row.vdisk_max %></td>
106             <td><%= row.speed_units %></td>
107             <td><%= row.speed %></td>
108         </tr>
109     <% }); %>
110     </tbody>
111     </table>
112
113 </div>
114
115 <footer>
116     <% include ../partials/footer %>
117 </footer>
118
119
120 </body>
121 </html>
122