diff options
author | Dan Timoney <dtimoney@att.com> | 2021-04-12 08:17:37 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2021-04-12 08:17:37 -0400 |
commit | 5cabe36fe85a780a9fb808343d6341f15da13524 (patch) | |
tree | 4893568c164dfaa82226eacc75fec4d622acb398 /admportal/views/admin | |
parent | 41a3f91544616f0e785e0e9e552e9fd0234cc9b3 (diff) |
Fix ccsdk version and remove admportal2.1.4
Fix ccsdk versions and remove admportal, which is no longer supported
Change-Id: Iaee9bd2b7d5d7345f889357684df18d53db466a1
Issue-ID: SDNC-1507
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: a1d57d8f5131414429f9ef2d8b0468004d253d0a
Diffstat (limited to 'admportal/views/admin')
-rw-r--r-- | admportal/views/admin/list_usertrace.ejs | 68 | ||||
-rw-r--r-- | admportal/views/admin/parameters.ejs | 181 |
2 files changed, 0 insertions, 249 deletions
diff --git a/admportal/views/admin/list_usertrace.ejs b/admportal/views/admin/list_usertrace.ejs deleted file mode 100644 index 799288a7..00000000 --- a/admportal/views/admin/list_usertrace.ejs +++ /dev/null @@ -1,68 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <% include ../partials/head %> - <% include ../partials/header %> - <title>SDN-C AdminPortal</title> -</head> - -<body> - -<div class="actions" style="padding:0px 25px;"> -<h2>User Trace</h2> -</div> - -<% if ( typeof result != 'undefined' ) { - if (result.code.length > 0) { - if ( result.code == 'success' ) { %> - <div class='alert alert-success' role='alert'><%=result.msg %></div> - <% } else { %> - <div class='alert alert-danger' role='danger'><%=result.msg %></div> - <% } %> - <% } %> -<% } %> - -<% if( typeof privilege != 'undefined'){ - var priv = privilege.privilege; -} else { - var priv = 'A'; -} %> - - -<div class="container-fluid"> - <div class="actions" style="padding:15px 0px;"> - - </div> - <div class="content"> - <table class="table table-hover"> - <thead> - <tr> - <th>Date</th> - <th>ATTUID</th> - <th>Action</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <% if (rows) { - rows.forEach(function(row) { %> - <tr> - <td><%= row.date %></td> - <td><%= row.attuid %></td> - <td><%= row.action %></td> - <td><%= row.description %></td> - </tr> - <% }); }; %> - </tbody> - </table> - </div> - - <footer> - <% include ../partials/footer %> - </footer> - -</body> -</html> - diff --git a/admportal/views/admin/parameters.ejs b/admportal/views/admin/parameters.ejs deleted file mode 100644 index 247abc58..00000000 --- a/admportal/views/admin/parameters.ejs +++ /dev/null @@ -1,181 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <% include ../partials/head %> - <% include ../partials/header %> - <script type="text/javascript" src="/javascripts/admportal.js" async></script> - <title>SDN AdminPortal</title> -<script class="init"> - $(document).ready(function() { - $('#params').DataTable( { - "order": [[ 0, "asc" ]] - } ); -} ); -</script> - -</head> -<body> - -<div class="well well-sm"> -<h3>Parameters</h3> -</div> - -<% if ( typeof result != 'undefined' ) { - if (result.code.length > 0) { - if ( result.code == 'success' ) { %> - <div class='alert alert-success' role='alert'> - <% - for ( x in result.msg ){ %> - <div><%= result.msg[x] %></div> - <% } %> - </div> - <% } else { %> - <div class='alert alert-danger' role='danger'> - <% - for ( x in result.msg ){ %> - <div><%= result.msg[x] %></div> - <% } %> - </div> - <% } %> - <% } %> -<% } %> - -<% if( typeof privilege != 'undefined'){ - var priv = privilege.privilege; -} else { - var priv = 'A'; -} %> - - -<div class="container-fluid"> - -<div class="actions" style="padding:15px 0px;"> - <button class="btn btn-primary btn-md" data-toggle="modal" data-target="#new_parameter"> - Add Parameter - </button> -</div> - - <table id="params" class="table table-hover table-condensed"> - <thead> - <tr> - <th>*Name</th> - <th>*Value</th> - <th>Category</th> - <th>Memo</th> - <% if(priv == 'A'){ %> - <th>Action</th> - <% } %> - </tr> - </thead> - <tbody> - <% rows.forEach( function(row) { %> - <tr> - <td><%= row.name %></td> - <td><%= row.value %></td> - <td><%= row.category %></td> - <td><%= row.memo %></td> - <% if(priv == 'A') { %> - <td> - <button type="button" class="btn btn-default btn-xs" - onclick="updateParameter('<%=row.name %>','<%= row.value %>','<%= row.category %>','<%= row.memo %>');">Update</button> - <button type="button" class="btn btn-default btn-xs" - onclick="deleteParameter('<%= row.name %>','<%=row.value %>','<%= row.category %>','<%= row.memo %>');">Delete</button> - </td> - <% } %> - </tr> - <% }); %> - </tbody> - </table> -</div> - -<% include ../partials/new_parameter %> -<% include ../partials/update_parameter %> -<footer> - <% include ../partials/footer %> -</footer> - -<script type="text/javascript"> -function submitParam(form) -{ - var errorMsg=''; - var name = ''; - var value = ''; - var category = ''; - var memo = ''; - - if ( form.name == 'addForm' ) - { - name = form.nf_name; - value = form.nf_value; - category = form.nf_category; - memo = form.nf_memo; - } - else - { - name = form.uf_name; - value = form.uf_value; - category = form.uf_category; - memo = form.uf_memo; - } - - if ( (name.value == null) || (name.value == "") || isblank(name.value) ) - { - errorMsg += 'Name is required.<br>'; - } - if ( (value.value == null) || (value.value == "") || isblank(value.value) ) - { - errorMsg += 'Value is required.<br>'; - } - if( errorMsg.length > 0 ) { - bootbox.alert(errorMsg); - return; - } - form.submit(); -} - - -function updateParameter(name,value,category,memo) { - - document.getElementById('uf_name').value=name; - document.getElementById('uf_value').value=value - document.getElementById('uf_category').value=category; - document.getElementById('uf_memo').value=memo; - - document.getElementById('uf_key_name').value=name; - - $('#update_parameter').modal('show'); -} - -function deleteParameter(name,value,category,memo) { - - var url_string = encodeURI("/admin/deleteParameter?name=" + name - + "&value=" + value - + "&category=" + category - + "&memo=" + memo); - - bootbox.confirm({ - message: "Are you sure you want to delete PARAMETER [" + name + "][" + value + "] ?", - callback: function(result) { - if ( result ) - { - location.assign(url_string); - } - return; - }, - buttons: { - cancel: { - label: "Cancel" - }, - confirm: { - label: "Yes" - } - } - }); -} -</script> - -</body> -</html> - |