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>
13 <div class="well well-sm">
14 <h3>Service Homing Rollback</h3>
15 <p>(This table data was saved during the last import of SERVICE_HOMING data.)</p>
18 <% if ( typeof result != 'undefined' ) {
19 if (result.code.length > 0) {
20 if ( result.code == 'success' ) { %>
21 <div class='alert alert-success' role='alert'>
23 for ( x in result.msg ){ %>
24 <div><%= result.msg[x] %></div>
28 <div class='alert alert-danger' role='danger'>
30 for ( x in result.msg ){ %>
31 <div><%= result.msg[x] %></div>
38 <% if( typeof privilege != 'undefined'){
39 var priv = privilege.privilege;
45 <div class="container-fluid">
46 <table class="table table-hover table-condensed">
51 <th>Hubbing City Type</th>
54 <th>Primary Site Name</th>
55 <th>Secondary Site Name</th>
56 <th>Tertiary Site Name</th>
60 <% var i=0; rows.forEach( function(row) { %>
62 <td><%= row.service_type %></td>
63 <td><%= row.lata %></td>
64 <td><%= row.hubbing_city_type%></td>
65 <td><%= row.latitude %></td>
66 <td><%= row.longitude %></td>
67 <td><%= row.primary_aic_site_name %></td>
68 <td><%= row.secondary_aic_site_name %></td>
69 <td><%= row.tertiary_aic_site_name %></td>
76 <p><%= i %> rows in table.</p>
79 <% if (priv == 'A') { %>
80 <button type="button" class="btn btn-default"
81 onclick="rollback();">Rollback</button>
86 <% include ../partials/footer %>
88 <script type="text/javascript">
93 message: "This Rollback will overlay the current SERVICE_HOMING table. Are you sure you want to Rollback the SERVICE_HOMING table?",
94 callback: function(result){
97 location.assign("/gamma/rollbackServiceHoming");