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 3.73 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 bootstrap_form_typeahead %}
29 30 31 32

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

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

73 74
<form class="form" method="post">
    {% csrf_token %}
chirac's avatar
chirac committed
75
    {% if machineform %}
76
    <h3>Machine</h3>
77
    {% bootstrap_form machineform %}
chirac's avatar
chirac committed
78
    {% endif %}
79
    {% if interfaceform %}
80
    <h3>Interface</h3>
81
        {% if i_bft_param %}
82
    {% bootstrap_form_typeahead interfaceform 'ipv4,machine' bft_param=i_bft_param %}
83
	{% else %}
84
    {% bootstrap_form_typeahead interfaceform 'ipv4,machine' %}
85
	{% endif %}
86
    {% endif %}
chirac's avatar
chirac committed
87
    {% if domainform %}
88
    <h3>Domaine</h3>
chirac's avatar
chirac committed
89 90
    {% bootstrap_form domainform %}
    {% endif %}
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    {% if iptypeform %}
    <h3>Type d'IP</h3>
    {% bootstrap_form iptypeform %}
    {% endif %}
    {% if machinetypeform %}
    <h3>Type de machine</h3>
    {% bootstrap_form machinetypeform %}
    {% endif %}
    {% if extensionform %}
    <h3>Extension</h3>
    {% bootstrap_form_typeahead extensionform 'origin' %}
    {% endif %}
    {% if mxform %}
    <h3>Enregistrement MX</h3>
    {% bootstrap_form_typeahead mxform 'name' %}
    {% endif %}
    {% if nsform %}
    <h3>Enregistrement NS</h3>
    {% bootstrap_form_typeahead nsform 'ns' %}
    {% endif %}
    {% if txtform %}
    <h3>Enregistrement TXT</h3>
    {% bootstrap_form txtform %}
    {% endif %}
    {% if aliasform %}
    <h3>Alias</h3>
    {% bootstrap_form aliasform %}
    {% endif %}
    {% if serviceform %}
    <h3>Service</h3>
    {% bootstrap_form serviceform %}
    {% endif %}
    {% if vlanform %}
    <h3>Vlan</h3>
    {% bootstrap_form vlanform %}
    {% endif %}
    {% if nasform %}
    <h3>NAS</h3>
    {% bootstrap_form nasform %}
    {% endif %}
131 132 133 134 135 136
    {% bootstrap_button "Créer ou modifier" button_type="submit" icon="star" %}
</form>
  <br />
  <br />
  <br />
{% endblock %}