2017-01-16 00:48:09 +01:00
{% extends "machines/sidebar.html" %}
2017-01-15 18:07:42 -05: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
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 %}
2016-07-08 17:54:06 +02:00
{% load bootstrap3 %}
2017-12-28 00:05:31 +01:00
{% load acl %}
2018-07-29 20:11:53 +02:00
{% load i18n %}
2017-12-28 00:05:31 +01:00
2018-08-05 18:48:22 +02:00
{% block title %}{% trans "Machines" %}{% endblock %}
2016-07-08 17:54:06 +02:00
{% block content %}
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of extensions" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create Extension %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-extension' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an extension" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-extension' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several extensions" %}< / a >
2016-07-08 17:54:06 +02:00
{% include "machines/aff_extension.html" with extension_list=extension_list %}
2016-11-19 17:44:43 +01:00
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of SOA records" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create SOA %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-soa' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an SOA record" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-soa' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several SOA records" %}< / a >
2017-10-19 23:52:38 +00:00
{% include "machines/aff_soa.html" with soa_list=soa_list %}
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of MX records" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create Mx %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-mx' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an MX record" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-mx' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several MX records" %}< / a >
2016-11-19 17:44:43 +01:00
{% include "machines/aff_mx.html" with mx_list=mx_list %}
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of NS records" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create Ns %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-ns' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an NS record" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-ns' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several NS records" %}< / a >
2016-11-19 18:21:05 +01:00
{% include "machines/aff_ns.html" with ns_list=ns_list %}
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of TXT records" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create Txt %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-txt' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add a TXT record" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-txt' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several TXT records" %}< / a >
2017-10-11 21:33:21 +00:00
{% include "machines/aff_txt.html" with txt_list=txt_list %}
2018-07-23 21:19:19 +00:00
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of DNAME records" %}< / h2 >
2018-06-25 16:50:45 +02:00
{% can_create DName %}
2018-07-23 21:19:19 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-dname' %}" >
2018-08-05 18:48:22 +02:00
< i class = "fa fa-plus" > < / i > {% trans " Add a DNAME record" %}
2018-07-23 21:19:19 +00:00
< / a >
2018-06-25 16:50:45 +02:00
{% acl_end %}
2018-07-23 21:19:19 +00:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-dname' %}" >
2018-08-05 18:48:22 +02:00
< i class = "fa fa-trash" > < / i > {% trans " Delete one or several DNAME records" %}
2018-07-23 21:19:19 +00:00
< / a >
{% include "machines/aff_dname.html" with dname_list=dname_list %}
2018-08-05 18:48:22 +02:00
< h2 > {% trans "List of SRV records" %}< / h2 >
2017-12-28 00:05:31 +01:00
{% can_create Srv %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'machines:add-srv' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an SRV record" %}< / a >
2017-12-28 00:05:31 +01:00
{% acl_end %}
2018-08-05 18:48:22 +02:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'machines:del-srv' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several SRV records" %}< / a >
2017-11-16 02:33:57 +01:00
{% include "machines/aff_srv.html" with srv_list=srv_list %}
2016-11-19 18:21:05 +01:00
< br / >
2016-07-08 17:54:06 +02:00
< br / >
< br / >
2016-11-19 17:44:43 +01:00
{% endblock %}
2016-07-08 17:54:06 +02:00