8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Hide graph by default

This commit is contained in:
Maël Kervella 2018-05-21 21:50:40 +00:00
parent f9af3fad8b
commit a8f3614e30

View file

@ -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>