validate.html 1.15 KB
Newer Older
1
{% extends "prises/template.html" %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
2
{% load i18n %}
3
{% block prises_content %}
4 5
{% if formset.forms %}
<form id="chambres" action="" method="post">
Daniel STAN's avatar
Daniel STAN committed
6
  {% csrf_token %}
7
  <ul class="icones">
8 9 10
    <li style="visibility:hidden">{{ formset.management_form }}</li>
    {% for form in formset.forms %}
    <li class="chambre_{% if form.instance.crans %}crans{% else %}crous{% endif %}">
11
      <ul>
12
        <li style="visibility:hidden">{{ form.id }}</li>
Mathilde Espinasse's avatar
Mathilde Espinasse committed
13
        <li>{% trans "Chambre" %} {{ batiment|upper }}{{ form.instance.chambre }}</li>
14 15
        <li>{% if form.instance.crans %}
          {{ form.instance.prise_crous }} -> {{ form.instance.prise_crans }}
16
          {% else %}
17
          {{ form.instance.prise_crans }} -> {{ form.instance.prise_crous }}
18
          {% endif %}</li>
19 20 21
        {% for field in form.visible_fields %}
        <li>{{ field }}</li>
        {% endfor %}
22
      </ul>
23
    </li>
24 25 26 27 28 29
    {% endfor %}
  </ul>
  <hr class="nofloat" style="visibility:hidden" />
  <p><input type="submit" value="Envoyer" class="nofloat"/></p>
</form>
{% else %}
30
{% if batiment %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
31
<p>{% trans "Tous les câblages ont été effectués !" %}</p>
32
{% endif %}
33
{% endif %}
34
{% endblock %}