2017-01-15 23:48:09 +00:00
|
|
|
{% extends "machines/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
|
|
|
|
Copyright © 2017 Goulven Kermarec
|
|
|
|
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 %}
|
2017-10-14 13:27:56 +00:00
|
|
|
{% load massive_bootstrap_form %}
|
2016-07-04 00:48:24 +00:00
|
|
|
|
|
|
|
{% block title %}Création et modification de machines{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% if machineform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors machineform %}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% endif %}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% if interfaceform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors interfaceform %}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% endif %}
|
2016-12-24 19:20:25 +00:00
|
|
|
{% if domainform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors domainform %}
|
2016-12-24 19:20:25 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if iptypeform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors iptypeform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if machinetypeform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors machinetypeform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if extensionform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors extensionform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if mxform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors mxform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nsform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors nsform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if txtform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors txtform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2017-11-16 01:33:57 +00:00
|
|
|
{% if srvform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors srvform %}
|
2017-11-16 01:33:57 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if aliasform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors aliasform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if serviceform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors serviceform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if vlanform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors vlanform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nasform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% bootstrap_form_errors nasform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2016-12-24 19:20:25 +00:00
|
|
|
|
2016-07-04 00:48:24 +00:00
|
|
|
<form class="form" method="post">
|
|
|
|
{% csrf_token %}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% if machineform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Machine</h3>
|
|
|
|
{% bootstrap_form machineform %}
|
2016-07-18 11:48:58 +00:00
|
|
|
{% endif %}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% if interfaceform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Interface</h3>
|
2017-10-14 13:27:56 +00:00
|
|
|
{% if i_mbf_param %}
|
2017-12-19 01:45:48 +00:00
|
|
|
{% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %}
|
|
|
|
{% else %}
|
|
|
|
{% massive_bootstrap_form interfaceform 'ipv4,machine' %}
|
|
|
|
{% endif %}
|
2016-07-07 11:19:03 +00:00
|
|
|
{% endif %}
|
2016-12-24 19:04:53 +00:00
|
|
|
{% if domainform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Domaine</h3>
|
|
|
|
{% bootstrap_form domainform %}
|
2016-12-24 19:04:53 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if iptypeform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Type d'IP</h3>
|
|
|
|
{% bootstrap_form iptypeform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if machinetypeform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Type de machine</h3>
|
|
|
|
{% bootstrap_form machinetypeform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if extensionform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Extension</h3>
|
|
|
|
{% massive_bootstrap_form extensionform 'origin' %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2017-10-19 23:52:38 +00:00
|
|
|
{% if soaform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Enregistrement SOA</h3>
|
|
|
|
{% bootstrap_form soaform %}
|
2017-10-19 23:52:38 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if mxform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Enregistrement MX</h3>
|
|
|
|
{% massive_bootstrap_form mxform 'name' %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nsform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Enregistrement NS</h3>
|
|
|
|
{% massive_bootstrap_form nsform 'ns' %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if txtform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Enregistrement TXT</h3>
|
|
|
|
{% bootstrap_form txtform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2017-11-16 01:33:57 +00:00
|
|
|
{% if srvform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Enregistrement SRV</h3>
|
|
|
|
{% massive_bootstrap_form srvform 'target' %}
|
2017-11-16 01:33:57 +00:00
|
|
|
{% endif %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% if aliasform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Alias</h3>
|
|
|
|
{% bootstrap_form aliasform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if serviceform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Service</h3>
|
|
|
|
{% massive_bootstrap_form serviceform 'servers' %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if vlanform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>Vlan</h3>
|
|
|
|
{% bootstrap_form vlanform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if nasform %}
|
2017-12-19 01:45:48 +00:00
|
|
|
<h3>NAS</h3>
|
|
|
|
{% bootstrap_form nasform %}
|
2017-10-12 09:57:16 +00:00
|
|
|
{% endif %}
|
2016-07-04 00:48:24 +00:00
|
|
|
{% bootstrap_button "Créer ou modifier" button_type="submit" icon="star" %}
|
|
|
|
</form>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
{% endblock %}
|