mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Hide graph by default
This commit is contained in:
parent
f9af3fad8b
commit
a8f3614e30
1 changed files with 22 additions and 12 deletions
|
@ -30,7 +30,27 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collImg" aria-expanded="false" aria-controls="collapse">
|
<script type="text/javascript" src="/static/js/jquery.ez-plus.js"></script>
|
||||||
|
<script>
|
||||||
|
function toggle_graph() {
|
||||||
|
$("#collImg").collapse('toggle');
|
||||||
|
|
||||||
|
ezImg = $("#zoom_01").data("ezPlus");
|
||||||
|
if (ezImg) {
|
||||||
|
ezImg.destroy();
|
||||||
|
$("#zoom_01").removeData("ezPlus");
|
||||||
|
} else {
|
||||||
|
$("#zoom_01").ezPlus({
|
||||||
|
scrollZoom: true,
|
||||||
|
zoomType: 'inner',
|
||||||
|
cursor: 'crosshair'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<button class="btn btn-primary" type="button" onclick="toggle_graph()">
|
||||||
Topologie des Switchs
|
Topologie des Switchs
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
@ -38,20 +58,10 @@ Topologie des Switchs
|
||||||
<span class="fa fa-arrows-alt"></span>
|
<span class="fa fa-arrows-alt"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div id="collImg">
|
<div id="collImg" class="collapse" aria-expanded="false">
|
||||||
<img id="zoom_01" src="/media/images/switchs.png" href="/media/images/switchs.png" target="_blank" data-zoom-image="/media/images/switchs.png" width=100% />
|
<img id="zoom_01" src="/media/images/switchs.png" href="/media/images/switchs.png" target="_blank" data-zoom-image="/media/images/switchs.png" width=100% />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="/static/js/jquery.ez-plus.js"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$("#zoom_01").ezPlus({
|
|
||||||
scrollZoom: true,
|
|
||||||
zoomType: 'inner',
|
|
||||||
cursor: 'crosshair'
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<h2>Switchs</h2>
|
<h2>Switchs</h2>
|
||||||
{% can_create Switch %}
|
{% can_create Switch %}
|
||||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-switch' %}"><i class="fa fa-plus"></i> Ajouter un switch</a>
|
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-switch' %}"><i class="fa fa-plus"></i> Ajouter un switch</a>
|
||||||
|
|
Loading…
Reference in a new issue