machine.html 4.57 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 %}
Maël Kervella's avatar
Maël Kervella committed
60 61 62
{% if dnameform %}
    {% bootstrap_form_errors dnameform %}
{% endif %}
Gabriel Detraz's avatar
Gabriel Detraz committed
63
{% if srvform %}
lhark's avatar
lhark committed
64
    {% bootstrap_form_errors srvform %}
Gabriel Detraz's avatar
Gabriel Detraz committed
65
{% endif %}
66
{% if aliasform %}
lhark's avatar
lhark committed
67
    {% bootstrap_form_errors aliasform %}
68 69
{% endif %}
{% if serviceform %}
lhark's avatar
lhark committed
70
    {% bootstrap_form_errors serviceform %}
71 72
{% endif %}
{% if vlanform %}
lhark's avatar
lhark committed
73
    {% bootstrap_form_errors vlanform %}
74 75
{% endif %}
{% if nasform %}
lhark's avatar
lhark committed
76
    {% bootstrap_form_errors nasform %}
77
{% endif %}
78 79 80
{% if ipv6form %}
    {% bootstrap_form_errors ipv6form %}
{% endif %}
chirac's avatar
chirac committed
81

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