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

{{ title }}

{# Informations du groupe #}
Groupe : {{ group.name }}
Localisation : {{ group.full_path }}
Éléments : {{ group.children_count }} actifs / {{ group.total_children }} dans le groupe
{% if group.tracked_individually %} Suivi individuel obligatoire {% else %} Suivi groupé {% endif %}
{{ form.hidden_tag() }} {# Sélection des unités #}
Sélection des unités concernées
0 unité(s) sélectionnée(s)
{% for child in children %} {% endfor %}
Code Position Statut Interventions
{{ child.individual_number }} {{ child.code or '—' }} {{ child.position or '—' }} {{ child.status|format_status }} {% if child.has_active_curative %} {% endif %} {{ child.interventions.count() }}
{# Informations générales #}
Informations de l'intervention
{{ form.title.label(class="form-label fw-bold mb-1") }} {{ form.title(class="form-control", placeholder="Ex: Panne sur plusieurs chaises") }} {% for error in form.title.errors %}
{{ error }}
{% endfor %}
{{ form.priority.label(class="form-label fw-bold mb-1") }} {{ form.priority(class="form-select") }}
{{ form.type.label(class="form-label fw-bold mb-1") }} {{ form.type(class="form-select") }}
{{ form.preventive_type.label(class="form-label fw-bold mb-1") }} {{ form.preventive_type(class="form-select") }}
{{ form.description.label(class="form-label mb-1") }} {{ form.description(class="form-control", rows=3, placeholder="Description du problème...") }}
{# GIMA & Budget #}
GIMA & Budget
{{ form.gima_number.label(class="form-label mb-1") }} {{ form.gima_number(class="form-control", placeholder="N° demande GIMA") }}
{{ form.budget_amount.label(class="form-label mb-1") }} {{ form.budget_amount(class="form-control", placeholder="0.00") }}
{{ form.needs_budget(class="form-check-input") }} {{ form.needs_budget.label(class="form-check-label") }}
{# Assignation #}
Assignation
{{ form.technician_id.label(class="form-label mb-1") }} {{ form.technician_id(class="form-select") }}
{{ form.assigned_to_id.label(class="form-label mb-1") }} {{ form.assigned_to_id(class="form-select") }}
Annuler
{% endblock %}