| {% extends "base.html" %} |
| {% load get %} |
| {% load staticfiles %} |
| |
| |
| {% block head_block %} |
| {{ block.super }} |
| |
| {% endblock %} |
| {% block title_header_big %} |
| {{ block.super }} |
| {% endblock %} |
| {% block left_sidebar %} |
| {% include 'osm/osm_project_left_sidebar.html' %} |
| {% endblock %} |
| |
| |
| {% block breadcrumb_body %} |
| {{ block.super }} |
| <li><a href="{% url 'sdns:list' %}">SDN Controllers</a></li> |
| {% endblock %} |
| |
| {% block content_body %} |
| {{ block.super }} |
| {% include 'modal/sdn_details.html' %} |
| {% csrf_token %} |
| <div class="row"> |
| <div class="col-md-12"> |
| |
| <div class="box"> |
| <div class="box-header with-border"> |
| <h3 class="box-title">Registered SDN Controllers</h3> |
| <div class="box-tools"> |
| <a href='{% url "sdns:create" %}' class="btn btn-block btn-primary btn-sm"><i |
| class="fa fa-plus"></i><span> New SDN Controller</span></a> |
| </div> |
| </div> |
| <div class="box-body"> |
| <table id="projects_table" class="table table-bordered table-striped"> |
| <thead> |
| <tr> |
| <th>Id</th> |
| <th>Name</th> |
| <th>Type</th> |
| <th>Operational State</th> |
| <th>IP</th> |
| <th>Port</th> |
| <th>Actions</th> |
| |
| </tr> |
| </thead> |
| <tbody> |
| {% for s in sdns %} |
| <tr> |
| <td>{{ s|get:"_id" }}</td> |
| <td>{{ s|get:"name" }}</td> |
| <td>{{ s|get:"type" }}</td> |
| <td>{{ s|get_sub:"_admin,operationalState"}}</td> |
| <td>{{ s|get:"ip" }}</td> |
| <td>{{ s|get:"port" }}</td> |
| <td> |
| <div class="btn-group"> |
| <button type="button" class="btn btn-default" |
| onclick="javascript:showSDN( '{{ s|get:"_id" }}')" data-toggle="tooltip" data-placement="top" data-container="body" title="Show Info"><i |
| class="fa fa-info"></i></button> |
| <button type="button" class="btn btn-default" |
| onclick="javascript:deleteSDN('{{ s|get:"_id" }}')" data-toggle="tooltip" data-placement="top" data-container="body" title="Delete"><i |
| class="far fa-trash-alt" ></i></button> |
| </div> |
| </td> |
| |
| </tr> |
| {% endfor %} |
| </tbody> |
| </table> |
| </div> |
| </div> |
| </div> |
| |
| </div> |
| {% endblock %} |
| |
| {% block resource_block %} |
| {{ block.super }} |
| <!-- moment JS --> |
| <script src="/static/bower_components/moment/moment.js"></script> |
| |
| <script src="/static/src/sdnctrlhandler/sdn_list.js"></script> |
| |
| |
| {% endblock %} |
| |
| {% block footer %} |
| {% include "footer.html" %} |
| {% endblock %} |