Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

machine.html 4.37 KB
Newer Older
1
{% extends "machines/sidebar.html" %}
2 3 4 5 6 7 8 9
{% 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
10
Copyright © 2017  Maël Kervella
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

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 %}

27
{% load bootstrap3 %}
28
{% load massive_bootstrap_form %}
29 30 31 32

{% block title %}Création et modification de machines{% endblock %}

{% block content %}
chirac's avatar
chirac committed
33
{% if machineform %}
lhark's avatar
lhark committed
34
    {% bootstrap_form_errors machineform %}
chirac's avatar
chirac committed
35
{% endif %}
36
{% if interfaceform %}
lhark's avatar
lhark committed
37
    {% bootstrap_form_errors interfaceform %}
38
{% endif %}
chirac's avatar
chirac committed
39
{% if domainform %}
lhark's avatar
lhark committed
40
    {% bootstrap_form_errors domainform %}
chirac's avatar
chirac committed
41
{% endif %}
42
{% if iptypeform %}
lhark's avatar
lhark committed
43
    {% bootstrap_form_errors iptypeform %}
44 45
{% endif %}
{% if machinetypeform %}
lhark's avatar
lhark committed
46
    {% bootstrap_form_errors machinetypeform %}
47 48
{% endif %}
{% if extensionform %}
lhark's avatar
lhark committed
49
    {% bootstrap_form_errors extensionform %}
50 51
{% endif %}
{% if mxform %}
lhark's avatar
lhark committed
52
    {% bootstrap_form_errors mxform %}
53 54
{% endif %}
{% if nsform %}
lhark's avatar
lhark committed
55
    {% bootstrap_form_errors nsform %}
56 57
{% endif %}
{% if txtform %}
lhark's avatar
lhark committed
58
    {% bootstrap_form_errors txtform %}
59
{% endif %}
Gabriel Detraz's avatar
Gabriel Detraz committed
60
{% if srvform %}
lhark's avatar
lhark committed
61
    {% bootstrap_form_errors srvform %}
Gabriel Detraz's avatar
Gabriel Detraz committed
62
{% endif %}
63
{% if aliasform %}
lhark's avatar
lhark committed
64
    {% bootstrap_form_errors aliasform %}
65 66
{% endif %}
{% if serviceform %}
lhark's avatar
lhark committed
67
    {% bootstrap_form_errors serviceform %}
68 69
{% endif %}
{% if vlanform %}
lhark's avatar
lhark committed
70
    {% bootstrap_form_errors vlanform %}
71 72
{% endif %}
{% if nasform %}
lhark's avatar
lhark committed
73
    {% bootstrap_form_errors nasform %}
74
{% endif %}
75 76 77
{% if ipv6form %}
    {% bootstrap_form_errors ipv6form %}
{% endif %}
chirac's avatar
chirac committed
78

79 80
<form class="form" method="post">
    {% csrf_token %}
chirac's avatar
chirac committed
81
    {% if machineform %}
lhark's avatar
lhark committed
82 83
        <h3>Machine</h3>
        {% bootstrap_form machineform %}
chirac's avatar
chirac committed
84
    {% endif %}
85
    {% if interfaceform %}
lhark's avatar
lhark committed
86
        <h3>Interface</h3>
87
        {% if i_mbf_param %}
lhark's avatar
lhark committed
88 89 90 91
            {% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %}
        {% else %}
            {% massive_bootstrap_form interfaceform 'ipv4,machine' %}
        {% endif %}
92
    {% endif %}
chirac's avatar
chirac committed
93
    {% if domainform %}
lhark's avatar
lhark committed
94 95
        <h3>Domaine</h3>
        {% bootstrap_form domainform %}
chirac's avatar
chirac committed
96
    {% endif %}
97
    {% if iptypeform %}
lhark's avatar
lhark committed
98 99
        <h3>Type d'IP</h3>
        {% bootstrap_form iptypeform %}
100 101
    {% endif %}
    {% if machinetypeform %}
lhark's avatar
lhark committed
102 103
        <h3>Type de machine</h3>
        {% bootstrap_form machinetypeform %}
104 105
    {% endif %}
    {% if extensionform %}
lhark's avatar
lhark committed
106 107
        <h3>Extension</h3>
        {% massive_bootstrap_form extensionform 'origin' %}
108
    {% endif %}
109
    {% if soaform %}
lhark's avatar
lhark committed
110 111
        <h3>Enregistrement SOA</h3>
        {% bootstrap_form soaform %}
112
    {% endif %}
113
    {% if mxform %}
lhark's avatar
lhark committed
114 115
        <h3>Enregistrement MX</h3>
        {% massive_bootstrap_form mxform 'name' %}
116 117
    {% endif %}
    {% if nsform %}
lhark's avatar
lhark committed
118 119
        <h3>Enregistrement NS</h3>
        {% massive_bootstrap_form nsform 'ns' %}
120 121
    {% endif %}
    {% if txtform %}
lhark's avatar
lhark committed
122 123
        <h3>Enregistrement TXT</h3>
        {% bootstrap_form txtform %}
124
    {% endif %}
Gabriel Detraz's avatar
Gabriel Detraz committed
125
    {% if srvform %}
lhark's avatar
lhark committed
126 127
        <h3>Enregistrement SRV</h3>
        {% massive_bootstrap_form srvform 'target'  %}
Gabriel Detraz's avatar
Gabriel Detraz committed
128
    {% endif %}
129
    {% if aliasform %}
lhark's avatar
lhark committed
130 131
        <h3>Alias</h3>
        {% bootstrap_form aliasform %}
132 133
    {% endif %}
    {% if serviceform %}
lhark's avatar
lhark committed
134 135
        <h3>Service</h3>
        {% massive_bootstrap_form serviceform 'servers' %}
136 137
    {% endif %}
    {% if vlanform %}
lhark's avatar
lhark committed
138 139
        <h3>Vlan</h3>
        {% bootstrap_form vlanform %}
140 141
    {% endif %}
    {% if nasform %}
lhark's avatar
lhark committed
142 143
        <h3>NAS</h3>
        {% bootstrap_form nasform %}
144
    {% endif %}
145 146 147 148
    {% if ipv6form %}
        <h3>Ipv6</h3>
        {% bootstrap_form ipv6form %}
    {% endif %}
149
    {% bootstrap_button action_name button_type="submit" icon="star" %}
150 151 152 153 154
</form>
  <br />
  <br />
  <br />
{% endblock %}