<divclass="mb-3"><labelclass="form-label">Titre *</label><inputtype="text"name="title"class="form-control"value="{{ training.name if training is defined else '' }}"required></div>
<divclass="mb-3"><labelclass="form-label">Description</label><textareaname="description"class="form-control"rows="3">{{ training.description if training is defined and training.description else '' }}</textarea></div>
<divclass="col-md-6"><labelclass="form-label">Date début *</label><inputtype="date"name="start_date"class="form-control"value="{{ training.start_date.isoformat() if training is defined and training.start_date else '' }}"required></div>
<divclass="col-md-6"><labelclass="form-label">Date fin</label><inputtype="date"name="end_date"class="form-control"value="{{ training.end_date.isoformat() if training is defined and training.end_date else '' }}"></div>
<divclass="col-md-6"><labelclass="form-label">Heure de début</label><inputtype="time"name="start_time"class="form-control"value="{{ training.start_time.strftime('%H:%M') if training is defined and training.start_time else '' }}"></div>
<divclass="col-md-6"><labelclass="form-label">Heure de fin</label><inputtype="time"name="end_time"class="form-control"value="{{ training.end_time.strftime('%H:%M') if training is defined and training.end_time else '' }}"></div>
<divclass="form-text">La période bloque toute maintenance pour le participant confirmé.</div>
<divclass="col-md-12"><labelclass="form-label">Lieu</label><inputtype="text"name="location"class="form-control"value="{{ training.location if training is defined and training.location else '' }}"></div>
<divclass="text-end"><buttontype="submit"class="btn btn-primary"><iclass="bi bi-check-lg"></i> {{ 'Importer et bloquer le planning' if source_interpretation is defined else 'Enregistrer' }}</button></div>