pour prod
This commit is contained in:
35
app/Views/partials/structure_overview.php
Normal file
35
app/Views/partials/structure_overview.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<section id="structure-view" class="app-view page-content">
|
||||
<section class="card">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2><?= ($accessProfile['role'] ?? '') === 'AGENT' ? 'Planning de mon lieu d’affectation' : 'Vue d’ensemble d’un lieu d’affectation' ?></h2>
|
||||
<p class="section-subtitle">Les agents rattachés par défaut à ce lieu et ceux qui y sont effectivement planifiés sur la semaine. Cette vue est en lecture seule.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="selection-grid overview-filters">
|
||||
<label class="field">
|
||||
<span>Lieu d’affectation</span>
|
||||
<select id="overview-structure">
|
||||
<option value="">Choisir un lieu d’affectation</option>
|
||||
<?php foreach ($structures as $structure): ?>
|
||||
<option value="<?= (int) $structure['id_structure'] ?>"><?= htmlspecialchars($structure['nom']) ?> — <?= ($structure['type_affectation'] ?? 'PERISCOLAIRE') === 'EXTRASCOLAIRE' ? 'Extrascolaire' : 'Périscolaire' ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Semaine</span>
|
||||
<input id="overview-week" type="week" value="<?= htmlspecialchars($currentWeek) ?>">
|
||||
</label>
|
||||
<div class="overview-filter-actions">
|
||||
<button id="load-structure-overview" class="button button-primary filter-button" type="button">Afficher</button>
|
||||
<button id="open-structure-pdf" class="button button-secondary filter-button button-pdf" type="button" disabled>Voir le PDF du lieu</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card overview-card">
|
||||
<div id="structure-overview-empty" class="empty-state">Choisissez un lieu d’affectation et une semaine.</div>
|
||||
<div id="structure-overview-content" hidden></div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user