index.html 2.29 KB
Newer Older
1
{% extends "topologie/sidebar.html" %}
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}

Dalahro's avatar
Dalahro committed
26
{% load bootstrap3 %}
27
{% load acl %}
Dalahro's avatar
Dalahro committed
28 29 30 31

{% block title %}Switchs{% endblock %}

{% block content %}
grisel-davy's avatar
grisel-davy committed
32

Maël Kervella's avatar
Maël Kervella committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<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()">
grisel-davy's avatar
grisel-davy committed
54 55 56 57 58 59 60
Topologie des Switchs
</button>

<a target="_blank" href="/media/images/switchs.png" class="btn btn-primary">
  <span class="fa fa-arrows-alt"></span> 
</a>

Maël Kervella's avatar
Maël Kervella committed
61
<div id="collImg" class="collapse" aria-expanded="false">
grisel-davy's avatar
grisel-davy committed
62 63
<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>
64 65

<h2>Switchs</h2>
66
{% can_create Switch %}
67
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-switch' %}"><i class="fa fa-plus"></i> Ajouter un switch</a>
Gabriel Detraz's avatar
Gabriel Detraz committed
68
<hr>
69
{% acl_end %}
Dalahro's avatar
Dalahro committed
70 71 72 73
    {% include "topologie/aff_switch.html" with switch_list=switch_list %}
    <br />
    <br />
    <br />
74

Dalahro's avatar
Dalahro committed
75
{% endblock %}