<?php use App\Core\Csrf; ?>
<link rel="stylesheet" href="/public/assets/css/cda-enrollment-dossier.css">
<section class="enrollment-hero"><div><span class="page-kicker">Dossier famille</span><h2>Inscrire <?= htmlspecialchars($member['prenom'].' '.$member['nom']) ?></h2><p>Choisissez le cours puis le groupe ou le créneau.</p></div><a class="button button-secondary" href="javascript:history.back()">Retour</a></section>
<section class="enrollment-card"><form method="post" action="/public/inscriptions" class="enrollment-form" id="enrollment-form"><?= Csrf::field() ?><input type="hidden" name="membre_id" value="<?= (int)$member['id'] ?>"><label class="wide"><span>Atelier *</span><select required name="atelier_id" id="enrollment-workshop"><option value="">Choisir</option><?php foreach($workshops as $w): ?><option value="<?= (int)$w['id'] ?>" data-pole="<?= htmlspecialchars($w['pole_code']) ?>"><?= htmlspecialchars($w['libelle'].' — '.$w['pole_libelle']) ?></option><?php endforeach; ?></select></label><label class="wide"><span>Groupe / créneau</span><select name="groupe_id" id="enrollment-group"><option value="">Affecter plus tard</option></select></label><label><span>Début</span><input type="date" name="date_debut" value="<?= date('Y-m-d') ?>"></label><label><span>Fin</span><input type="date" name="date_fin"></label><label><span>CE1 minimum musique</span><select name="eligibility_ce1"><option value="">Non concerné</option><option value="1">Oui</option><option value="0">Non</option></select></label><label><span>Début individuel</span><input type="time" name="heure_debut"></label><label><span>Fin individuelle</span><input type="time" name="heure_fin"></label><label class="wide"><span>Observation</span><textarea name="observations" rows="3"></textarea></label><button class="button button-primary">Enregistrer</button></form></section>
<script src="/public/assets/js/cda-enrollment-dossier.js"></script>
