2019-01-08 23:40:48 +00:00
{% extends 'topologie/sidebar.html' %}
2017-01-15 23:07:42 +00:00
{% 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
2019-09-29 14:02:28 +00:00
Copyright © 2017 Lara Kermarec
2017-01-15 23:07:42 +00:00
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 %}
2016-07-06 19:50:15 +00:00
{% load bootstrap3 %}
2017-12-27 22:07:05 +00:00
{% load acl %}
2018-08-05 16:48:56 +00:00
{% load i18n %}
2016-07-06 19:50:15 +00:00
2018-08-05 16:48:56 +00:00
{% block title %}{% trans "Topology" %}{% endblock %}
2016-07-06 19:50:15 +00:00
{% block content %}
2018-09-26 13:42:31 +00:00
< h2 > {% trans "Switch:"%} {{ switch }}< / h2 >
2018-09-26 12:49:03 +00:00
< table class = "table table-striped" >
< thead >
< tr >
< th > {% trans "Switch bay" %}< / th >
< th > {% trans "Switch model" %}< / th >
< th > {% trans "Stack" %}< / th >
< / tr >
< / thead >
< tr >
2018-09-26 13:42:31 +00:00
< td > {{ switch.switchbay }}< / td >
< td > {{ switch.model }}< / td >
< td > {{ switch.stack }}< / td >
2018-09-26 12:49:03 +00:00
< / tr >
< / table >
< hr >
2019-01-08 23:40:48 +00:00
{% include 'buttons/edit.html' with href='topologie:edit-switch' id=id_switch %}
2017-12-27 22:07:05 +00:00
{% can_create Port %}
2019-11-16 14:14:22 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'topologie:new-port' id_switch %}" > < i class = "fa fa-plus" > < / i > {% trans "Add a port" %}< / a >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'topologie:create-ports' id_switch %}" > < i class = "fa fa-plus" > < / i > {% trans "Add ports to the port list" %}< / a >
2018-03-29 02:35:23 +00:00
{% acl_end %}
2018-04-02 18:12:53 +00:00
< hr >
2019-01-08 23:40:48 +00:00
{% include 'topologie/aff_repr_switch.html' with port_list=port_list %}
{% include 'topologie/aff_port.html' with port_list=port_list %}
2016-07-06 19:50:15 +00:00
< br / >
< br / >
< br / >
{% endblock %}
2018-08-05 16:48:56 +00:00