Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / admportal / views / ucpe / apiLogins.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     $('#api_logins').DataTable( {
13         "order": [[ 0, "asc" ]]
14     } );
15 } );
16 </script>
17
18 </head>
19
20 <body>
21
22 <div class="well well-sm">
23 <h3>uCPE API Logins</h3>
24 </div>
25
26 <% if ( typeof result != 'undefined' ) {
27         if (result.code.length > 0) {
28             if ( result.code == 'success' ) { %>
29                 <div class='alert alert-success' role='alert'>
30                 <%
31                 for ( x in result.msg ){ %>
32                     <div><%= result.msg[x] %></div>
33                 <% } %>
34                 </div>
35             <% } else { %>
36                 <div class='alert alert-danger' role='danger'>
37                 <%
38                 for ( x in result.msg ){ %>
39                     <div><%= result.msg[x] %></div>
40                 <% } %>
41                 </div>
42             <% } %>
43         <% } %>
44 <% } %>
45
46 <% if( typeof privilege != 'undefined'){
47     var priv = privilege.privilege;
48 } else {
49     var priv = 'A';
50 } %>
51
52
53 <div class="container-fluid">
54
55 <!--
56          <% if (priv == 'A'){ %>
57     <div class="actions" style="padding:15px 0px;">
58     <button class="btn btn-primary" data-toggle="modal" data-target="#add_vnf_profile">
59       Add VNF Profile
60     </button>
61     </div>
62     <% } %>
63 -->
64
65         <table id="api_logins" class="table table-hover table-condensed">
66     <thead>
67         <tr>
68                   <th>*CUSTOMER_NAME</th>
69                   <th>PHS_NCS_USERNAME</th>
70                   <th>NCS_PUBLIC_SSH_KEY</th>
71         </tr>
72     </thead>
73         <tbody>
74     <% rows.forEach( function(row) { %>
75         <tr>
76             <td><%= row.customer_name %></td>
77             <td><%= row.phs_ncs_username %></td>
78             <td><%= row.ncs_public_ssh_key %></td>
79         </tr>
80     <% }); %>
81     </tbody>
82     </table>
83
84 </div>
85
86 <footer>
87     <% include ../partials/footer %>
88 </footer>
89
90
91 </body>
92 </html>
93