2019-01-08 23:39:31 +00:00
|
|
|
{% extends 'machines/sidebar.html' %}
|
2017-01-15 23:07:42 +00:00
|
|
|
{% comment %}
|
2020-11-23 16:06:37 +00:00
|
|
|
Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
|
2017-01-15 23:07:42 +00:00
|
|
|
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
|
2017-10-06 23:37:22 +00:00
|
|
|
Copyright © 2017 Maël Kervella
|
2017-01-15 23:07:42 +00:00
|
|
|
|
|
|
|
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-04 00:48:24 +00:00
|
|
|
{% load bootstrap3 %}
|
2018-08-05 16:48:22 +00:00
|
|
|
{% load i18n %}
|
2016-07-04 00:48:24 +00:00
|
|
|
|
2018-08-05 16:48:22 +00:00
|
|
|
{% block title %}{% trans "Machines" %}{% endblock %}
|
2016-07-04 00:48:24 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% if machineform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors machineform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ machineform.media }}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% endif %}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% if interfaceform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors interfaceform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ interfaceform.media }}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% endif %}
|
2016-12-24 19:04:53 +00:00
|
|
|
{% if domainform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors domainform %}
|
2016-12-24 19:04:53 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if iptypeform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors iptypeform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ iptypeform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if machinetypeform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors machinetypeform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if extensionform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors extensionform %}
|
2017-10-19 23:52:38 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if mxform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors mxform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ mxform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nsform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors nsform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ nsform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if txtform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors txtform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ txtform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2018-06-25 14:50:45 +00:00
|
|
|
{% if dnameform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors dnameform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ dnameform.media }}
|
2018-06-25 14:50:45 +00:00
|
|
|
{% endif %}
|
2017-11-16 01:33:57 +00:00
|
|
|
{% if srvform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors srvform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ srvform.media }}
|
2018-07-29 17:07:40 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if aliasform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors aliasform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ aliasform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if serviceform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors serviceform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ serviceform.media }}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if sshfpform %}
|
|
|
|
{% bootstrap_form_errors sshfpform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2018-06-23 14:39:03 +00:00
|
|
|
{% if roleform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors roleform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ roleform.media }}
|
2018-06-23 14:39:03 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if vlanform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors vlanform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nasform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors nasform %}
|
2020-12-28 15:20:33 +00:00
|
|
|
{{ nasform.media }}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2018-01-29 02:53:49 +00:00
|
|
|
{% if ipv6form %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% bootstrap_form_errors ipv6form %}
|
|
|
|
{% endif %}
|
2018-08-05 16:48:22 +00:00
|
|
|
|
2018-09-24 17:31:12 +00:00
|
|
|
<form class="form" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if machineform %}
|
|
|
|
<h3>{% trans "Machine" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form machineform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if interfaceform %}
|
|
|
|
<h3>{% trans "Interface" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form interfaceform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if domainform %}
|
|
|
|
<h3>{% trans "Domain" %}</h3>
|
|
|
|
{% bootstrap_form domainform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if iptypeform %}
|
|
|
|
<h3>{% trans "IP type" %}</h3>
|
|
|
|
{% bootstrap_form iptypeform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if machinetypeform %}
|
|
|
|
<h3>{% trans "Machine type" %}</h3>
|
|
|
|
{% bootstrap_form machinetypeform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if extensionform %}
|
|
|
|
<h3>{% trans "Extension" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form extensionform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if soaform %}
|
|
|
|
<h3>{% trans "SOA record" %}</h3>
|
|
|
|
{% bootstrap_form soaform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if mxform %}
|
|
|
|
<h3>{% trans "MX record" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form mxform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nsform %}
|
|
|
|
<h3>{% trans "NS record" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form nsform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if txtform %}
|
|
|
|
<h3>{% trans "TXT record" %}</h3>
|
|
|
|
{% bootstrap_form txtform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if dnameform %}
|
|
|
|
<h3>{% trans "DNAME record" %}</h3>
|
|
|
|
{% bootstrap_form dnameform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if srvform %}
|
|
|
|
<h3>{% trans "SRV record" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form srvform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if sshfpform %}
|
|
|
|
<h3>{% trans "SSHFP record" %}</h3>
|
|
|
|
{% bootstrap_form sshfpform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if aliasform %}
|
|
|
|
<h3>{% trans "Alias" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form aliasform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if serviceform %}
|
|
|
|
<h3>{% trans "Service" %}</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form serviceform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if roleform %}
|
|
|
|
<h3>Role</h3>
|
2020-12-28 15:20:33 +00:00
|
|
|
{% bootstrap_form roleform %}
|
2018-09-24 17:31:12 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if vlanform %}
|
|
|
|
<h3>{% trans "VLAN" %}</h3>
|
|
|
|
{% bootstrap_form vlanform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if nasform %}
|
|
|
|
<h3>{% trans "NAS device" %}</h3>
|
|
|
|
{% bootstrap_form nasform %}
|
|
|
|
{% endif %}
|
|
|
|
{% if ipv6form %}
|
|
|
|
<h3>{% trans "IPv6 address" %}</h3>
|
|
|
|
{% bootstrap_form ipv6form %}
|
|
|
|
{% endif %}
|
|
|
|
{% bootstrap_button action_name button_type="submit" icon='ok' button_class='btn-success' %}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
2019-01-08 23:39:31 +00:00
|
|
|
|