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

{{ training.name }}

{% if current_user.role == 'admin' %} Modifier {% endif %} Retour
Informations

Date : {{ training.start_date.strftime('%d/%m/%Y') if training.start_date else 'À confirmer' }} au {{ training.end_date.strftime('%d/%m/%Y') if training.end_date else 'À confirmer' }}

{% if training.start_time or training.end_time %}

Horaire : {{ training.start_time.strftime('%H:%M') if training.start_time else '—' }} – {{ training.end_time.strftime('%H:%M') if training.end_time else '—' }}

{% endif %} {% if training.source_type %}

Source : {{ training.source_type }} {{ training.source_subject or '' }}{% if training.source_sender %} — {{ training.source_sender }}{% endif %}

{% endif %} {% if training.location %}

Lieu : {{ training.location }}

{% endif %} {% if training.description %}

Description : {{ training.description }}

{% endif %}
Participants ({{ participants|length }})
{% if participants %}
    {% for p in participants %}
  • {{ p.user.full_name }} {{ 'Confirmée' if p.is_confirmed else 'En attente' }}
  • {% endfor %}
{% else %}

Aucun participant inscrit.

{% endif %} {% set is_registered = participant_users.get(current_user.id) %}
{% endblock %}