1 {% extends
"base.html" %}
8 <link rel=
"stylesheet" href=
"/static/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
11 {% block title_header_big %}
14 {% block left_sidebar %}
15 {% include 'osm/osm_project_left_sidebar.html' %}
19 {% block breadcrumb_body %}
21 <li><a href=
"{% url 'sdns:list' %}">SDN Controllers
</a></li>
24 {% block content_body %}
26 {% include 'modal/sdn_details.html' %}
29 <div class=
"col-md-12">
32 <div class=
"box-header with-border">
33 <h3 class=
"box-title">Registered SDN Controllers
</h3>
34 <div class=
"box-tools">
35 <a href='{% url
"sdns:create" %}'
class=
"btn btn-block btn-primary btn-sm"><i
36 class=
"fa fa-plus"></i><span> New SDN Controller
</span></a>
39 <div class=
"box-body">
40 <table id=
"sdns_table" class=
"table table-bordered table-striped">
46 <th>Operational State
</th>
56 <td>{{ s|get:
"name" }}
</td>
57 <td>{{ s|get:
"_id" }}
</td>
58 <td>{{ s|get:
"type" }}
</td>
59 <td>{{ s|get_sub:
"_admin,operationalState"}}
</td>
60 <td>{{ s|get:
"ip" }}
</td>
61 <td>{{ s|get:
"port" }}
</td>
63 <div class=
"btn-group">
64 <button type=
"button" class=
"btn btn-default"
65 onclick=
"javascript:showSDN( '{{ s|get:"_id
" }}')" data-toggle=
"tooltip" data-placement=
"top" data-container=
"body" title=
"Show Info"><i
66 class=
"fa fa-info"></i></button>
67 <button type=
"button" class=
"btn btn-default"
68 onclick=
"javascript:deleteSDN('{{ s|get:"_id
" }}')" data-toggle=
"tooltip" data-placement=
"top" data-container=
"body" title=
"Delete"><i
69 class=
"far fa-trash-alt" ></i></button>
84 {% block resource_block %}
87 <script src=
"/static/bower_components/moment/moment.js"></script>
88 <script src=
"/static/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
89 <script src=
"/static/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
90 <script src=
"/static/src/sdnctrlhandler/sdn_list.js"></script>
93 $(document).ready( function () {
94 $('#sdns_table').DataTable();
100 {% include
"footer.html" %}