Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame^] | 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 | $('#ncs_servers').DataTable( { |
| 13 | "order": [[ 0, "asc" ]] |
| 14 | } ); |
| 15 | } ); |
| 16 | </script> |
| 17 | |
| 18 | </head> |
| 19 | <body> |
| 20 | |
| 21 | <div class="well well-sm"> |
| 22 | <h3>uCPE Customer NCS Servers</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="ncs_servers" class="table table-hover table-condensed"> |
| 65 | <thead> |
| 66 | <tr> |
| 67 | <th>*CUSTOMER_NAME</th> |
| 68 | <th>URL</th> |
| 69 | <th>NCS_SM_IP_ADDRESS</th> |
| 70 | <th>NCS_DM_V6_IP_ADDRESS</th> |
| 71 | <th>NCS_DM_V6_IP_NETWORK</th> |
| 72 | <th>DR_NCS_DM_V6_IP_NETWORK</th> |
| 73 | <th>NCS_DM_V4_IP_NETWORK</th> |
| 74 | <th>DR_NCS_DM_V4_IP_NETWORK</th> |
| 75 | </tr> |
| 76 | </thead> |
| 77 | <tbody> |
| 78 | <% rows.forEach( function(row) { %> |
| 79 | <tr> |
| 80 | <td><%= row.customer_name %></td> |
| 81 | <td><%= row.url %></td> |
| 82 | <td><%= row.ncs_sm_ip_address %></td> |
| 83 | <td><%= row.ncs_dm_v6_ip_address %></td> |
| 84 | <td><%= row.ncs_dm_v6_ip_network %></td> |
| 85 | <td><%= row.dr_ncs_dm_v6_ip_network %></td> |
| 86 | <td><%= row.ncs_dm_v4_ip_network %></td> |
| 87 | <td><%= row.dr_ncs_dm_v4_ip_network %></td> |
| 88 | </tr> |
| 89 | <% }); %> |
| 90 | </tbody> |
| 91 | </table> |
| 92 | |
| 93 | </div> |
| 94 | |
| 95 | <footer> |
| 96 | <% include ../partials/footer %> |
| 97 | </footer> |
| 98 | |
| 99 | |
| 100 | </body> |
| 101 | </html> |
| 102 | |