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 2.03 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 42
{% endif %}

43 44
<form class="form" method="post">
    {% csrf_token %}
chirac's avatar
chirac committed
45
    {% if machineform %}
46
    <h3>Machine</h3>
47
    {% bootstrap_form machineform %}
chirac's avatar
chirac committed
48
    {% endif %}
49
    {% if interfaceform %}
50
    <h3>Interface</h3>
51 52 53
        {% if i_bft_param %}
    {% bootstrap_form_typeahead interfaceform 'ipv4' bft_param=i_bft_param %}
	{% else %}
54
    {% bootstrap_form_typeahead interfaceform 'ipv4' %}
55
	{% endif %}
56
    {% endif %}
chirac's avatar
chirac committed
57
    {% if domainform %}
58
    <h3>Domaine</h3>
chirac's avatar
chirac committed
59 60
    {% bootstrap_form domainform %}
    {% endif %}
61 62 63 64 65 66
    {% bootstrap_button "Créer ou modifier" button_type="submit" icon="star" %}
</form>
  <br />
  <br />
  <br />
{% endblock %}