machine.html 5.1 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
{% load i18n %}
30

31
{% block title %}{% trans "Machines" %}{% endblock %}
32 33

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

89 90
<form class="form" method="post">
    {% csrf_token %}
chirac's avatar
chirac committed
91
    {% if machineform %}
92
    	<h3>{% trans "Machine" %}</h3>
93
        {% massive_bootstrap_form machineform 'user' %}
chirac's avatar
chirac committed
94
    {% endif %}
95
    {% if interfaceform %}
96
    	<h3>{% trans "Interface" %}</h3>
97
        {% if i_mbf_param %}
lhark's avatar
lhark committed
98 99 100 101
            {% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %}
        {% else %}
            {% massive_bootstrap_form interfaceform 'ipv4,machine' %}
        {% endif %}
102
    {% endif %}
chirac's avatar
chirac committed
103
    {% if domainform %}
104
    	<h3>{% trans "Domain" %}</h3>
lhark's avatar
lhark committed
105
        {% bootstrap_form domainform %}
chirac's avatar
chirac committed
106
    {% endif %}
107
    {% if iptypeform %}
108
    	<h3>{% trans "IP type" %}</h3>
lhark's avatar
lhark committed
109
        {% bootstrap_form iptypeform %}
110 111
    {% endif %}
    {% if machinetypeform %}
112
    	<h3>{% trans "Machine type" %}</h3>
lhark's avatar
lhark committed
113
        {% bootstrap_form machinetypeform %}
114 115
    {% endif %}
    {% if extensionform %}
116
    	<h3>{% trans "Extension" %}</h3>
lhark's avatar
lhark committed
117
        {% massive_bootstrap_form extensionform 'origin' %}
118
    {% endif %}
119
    {% if soaform %}
120
    	<h3>{% trans "SOA record" %}</h3>
lhark's avatar
lhark committed
121
        {% bootstrap_form soaform %}
122
    {% endif %}
123
    {% if mxform %}
124
    	<h3>{% trans "MX record" %}</h3>
lhark's avatar
lhark committed
125
        {% massive_bootstrap_form mxform 'name' %}
126 127
    {% endif %}
    {% if nsform %}
128
    	<h3>{% trans "NS record" %}</h3>
lhark's avatar
lhark committed
129
        {% massive_bootstrap_form nsform 'ns' %}
130 131
    {% endif %}
    {% if txtform %}
132
    	<h3>{% trans "TXT record" %}</h3>
lhark's avatar
lhark committed
133
        {% bootstrap_form txtform %}
134
    {% endif %}
Charlie Jacomme's avatar
Charlie Jacomme committed
135
    {% if dnameform %}
136
        <h3>{% trans "DNAME record" %}</h3>
Charlie Jacomme's avatar
Charlie Jacomme committed
137 138
        {% bootstrap_form dnameform %}
    {% endif %}
Gabriel Detraz's avatar
Gabriel Detraz committed
139
    {% if srvform %}
140
    	<h3>{% trans "SRV record" %}</h3>
lhark's avatar
lhark committed
141
        {% massive_bootstrap_form srvform 'target'  %}
Gabriel Detraz's avatar
Gabriel Detraz committed
142
    {% endif %}
143
    {% if sshfpform %}
144
        <h3>{% trans "SSHFP record" %}</h3>
145 146
        {% bootstrap_form sshfpform %}
    {% endif %}
147
    {% if aliasform %}
148
    	<h3>{% trans "Alias" %}</h3>
lhark's avatar
lhark committed
149
        {% bootstrap_form aliasform %}
150 151
    {% endif %}
    {% if serviceform %}
152
    	<h3>{% trans "Service" %}</h3>
lhark's avatar
lhark committed
153
        {% massive_bootstrap_form serviceform 'servers' %}
154
    {% endif %}
155 156 157 158
    {% if roleform %}
        <h3>Role</h3>
        {% massive_bootstrap_form roleform 'servers' %}
    {% endif %}
159
    {% if vlanform %}
160
    	<h3>{% trans "VLAN" %}</h3>
lhark's avatar
lhark committed
161
        {% bootstrap_form vlanform %}
162 163
    {% endif %}
    {% if nasform %}
164
    	<h3>{% trans "NAS device" %}</h3>
lhark's avatar
lhark committed
165
        {% bootstrap_form nasform %}
166
    {% endif %}
167
    {% if ipv6form %}
168
    	<h3>{% trans "IPv6 address" %}</h3>
169 170
        {% bootstrap_form ipv6form %}
    {% endif %}
171
    {% bootstrap_button action_name button_type="submit" icon="star" %}
172 173 174 175 176
</form>
  <br />
  <br />
  <br />
{% endblock %}
177