blob: 1f41130a633232bab9638a3d38aac941ec376e25 [file] [log] [blame]
lombardofr93770e22019-08-30 19:37:56 +02001<!--
2Copyright 2019 EveryUP srl
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16
lombardofr99f922f2018-07-17 17:27:36 +020017{% extends "base.html" %}
18{% load get %}
19{% load staticfiles %}
20
21
22
23{% block head_block %}
24 {{ block.super }}
lombardofr99f922f2018-07-17 17:27:36 +020025
lombardofre6eb7432018-10-28 19:43:46 +010026<!-- TopologyComposer D3 -->
27 <link rel="stylesheet" href="/static/TopologyComposer/css/composer.css">
28 <link rel="stylesheet" href="/static/TopologyComposer/css/d3-context-menu.css">
29
lombardofr99f922f2018-07-17 17:27:36 +020030
31{% endblock %}
32{% block title_header_big %}
lombardofre19f16b2018-12-02 18:16:10 +010033 NS Instances topology view
lombardofr99f922f2018-07-17 17:27:36 +020034{% endblock %}
35{% block left_sidebar %}
36 {% include 'osm/osm_project_left_sidebar.html' %}
37{% endblock %}
38
39
40{% block breadcrumb_body %}
41 {{ block.super }}
lombardofr2ad37de2018-07-18 09:47:28 +020042 <li><a href="{% url 'instances:list' type=type %}">{{ type|upper }} Instances</a></li>
lombardofr99f922f2018-07-17 17:27:36 +020043 <li><a href="#"><i class="fa fa-sitemap"></i> {{ type|upper }} Topology</a></li>
44{% endblock %}
45
46{% block content_body %}
47 {{ block.super }}
48 {% csrf_token %}
lombardofre6eb7432018-10-28 19:43:46 +010049 <div class="container-fluid">
50 <div id="main" class="row">
51 <div id="graph_editor_container" class="col">
52 <div class="btn-group left-tool-bar-monitoring">
53 <button id="topology_force" type="button" class="btn btn btn-default" onclick="handleForce(this)"
54 data-toggle="button" aria-pressed="false" autocomplete="off"><i
55 class="fas fa-thumbtack"></i></button>
lombardofre19f16b2018-12-02 18:16:10 +010056 {% comment %}<button id="reset_filter" type="button" data-container="body" data-toggle="tooltip" data-placement="top" title="YAML data" class="btn btn btn-default" onclick="showInstanceDetails(this)"><i
57 class="fa fa-edit"></i></button>{% endcomment %}
58 <button id="reset_filter" type="button" class="btn btn btn-default" data-toggle="tooltip" data-placement="top" title="Clear filter" onclick="resetFilters(this)"><i
lombardofre6eb7432018-10-28 19:43:46 +010059 class="fa fa-backward"></i></button>
60 </div>
61 <div id="legenda">
62 </div>
63 </div>
64 <div id="side">
lombardofr99f922f2018-07-17 17:27:36 +020065
66 </div>
67 </div>
68 </div>
69
lombardofr99f922f2018-07-17 17:27:36 +020070{% endblock %}
71
72{% block resource_block %}
73 {{ block.super }}
lombardofr99f922f2018-07-17 17:27:36 +020074 <!-- d3.js -->
lombardofre5a130a2019-07-15 09:17:59 +020075 <script src="/static/node_modules/d3/build/d3.js"></script>
lombardofr99f922f2018-07-17 17:27:36 +020076
lombardofre6eb7432018-10-28 19:43:46 +010077 <!-- TopologyComposer D3 -->
78 <script src="/static/TopologyComposer/js/event.js"></script>
79 <script src="/static/TopologyComposer/js/settings.js"></script>
80 <script src="/static/TopologyComposer/js/graph_editor.js"></script>
81 <script src="/static/TopologyComposer/js/model_graph_editor.js"></script>
82 <script src="/static/TopologyComposer/js/d3-context-menu.js"></script>
lombardofr99f922f2018-07-17 17:27:36 +020083
84
85 <script src="/static/src/osm_gui_properties.js"></script>
86 <script src="/static/src/instancehandler/instance_topology_view.js"></script>
87
88{% endblock %}
89
90{% block footer %}
91 {% include "footer.html" %}
92{% endblock %}