{% extends "base.html" %} {% block title %}{{ title }} — GMAO Collège{% endblock %} {% block content %}

{{ title }}

{{ form.hidden_tag() }}
{{ form.name.label(class="form-label") }}{{ form.name(class="form-control") }}
{{ form.code.label(class="form-label") }}{{ form.code(class="form-control") }}
{{ form.floor.label(class="form-label") }}{{ form.floor(class="form-control") }}
{{ form.building_id.label(class="form-label") }}{{ form.building_id(class="form-select") }}
{{ form.room_type_id.label(class="form-label") }}{{ form.room_type_id(class="form-select") }}
Annuler
{% if room and equipments %}
Équipements dans cette salle ({{ equipments|length }})
{% if equipments %}
{% for eq in equipments %} {% endfor %}
Nom Catégorie État Actions
{{ eq.name }} {{ eq.category.name if eq.category else '—' }} {% if eq.state == 'operationnel' %} Opérationnel {% elif eq.state == 'en_panne' %} En panne {% elif eq.state == 'en_maintenance' %} En maintenance {% else %} {{ eq.state }} {% endif %}
{% else %}

Aucun équipement dans cette salle.

{% endif %}
{% endif %} {% endblock %}