Files
HouseHub/family-calendar.php
T
2025-12-08 14:14:47 +01:00

95 lines
2.8 KiB
PHP

<?php
$pageTitle = "PachaFamily - Family Calendar";
$activePage = "family-calendar";
require __DIR__ . '/partials/header.php';
?>
<h1>Family Calendar</h1>
<p>Planning annuel de septembre à août - Carole (assistante maternelle), Alex &amp; Laia (CP / RTT / JA).</p>
<section class="pf-section pf-section--panel">
<div class="pf-flex pf-flex--wrap pf-gap-lg">
<div class="pf-card pf-card--small">
<h2 class="pf-card-title">Soldes initiaux</h2>
<div class="pf-card-body">
<p><strong>Alex</strong></p>
<label>CP :
<input id="alexCpInit" type="number" step="0.25" value="24.5">
</label><br>
<label>RTT :
<input id="alexRttInit" type="number" step="0.25" value="1.5">
</label><br>
<label>JA :
<input id="alexJaInit" type="number" step="0.25" value="1">
</label>
<p><strong>Laia</strong></p>
<label>CP :
<input id="laiaCpInit" type="number" step="0.25" value="19">
</label><br>
<label>RTT :
<input id="laiaRttInit" type="number" step="0.25" value="4">
</label><br>
<label>JA :
<input id="laiaJaInit" type="number" step="0.25" value="4">
</label>
</div>
</div>
<div class="pf-card pf-card--small">
<h2 class="pf-card-title">Filtres</h2>
<div class="pf-card-body">
<label>
<input id="showOnlyCaroleOff" type="checkbox">
Voir uniquement les semaines où Carole est en congés
</label><br>
<label>
<input id="showOnlySchoolHoliday" type="checkbox">
Voir uniquement les vacances scolaires
</label>
</div>
</div>
<div class="pf-card pf-card--small">
<h2 class="pf-card-title">Résumé</h2>
<div class="pf-card-body" id="summaryText">
<!-- Rempli par JS -->
</div>
</div>
</div>
</section>
<section class="pf-section">
<h2>Planning par semaine</h2>
<div class="pf-table-wrapper">
<table id="planningTable" class="pf-table pf-table--compact">
<thead>
<tr>
<th>Mois</th>
<th>Semaine</th>
<th>Dates (lun-dim)</th>
<th># Off Carole</th>
<th>Vacances scolaires</th>
<th>Bank holiday</th>
<th colspan="3">Alex - jours posés (semaine)</th>
<th colspan="3">Laia - jours posés (semaine)</th>
</tr>
<tr>
<th></th><th></th><th></th>
<th></th><th></th><th></th>
<th>CP</th><th>RTT</th><th>JA</th>
<th>CP</th><th>RTT</th><th>JA</th>
</tr>
</thead>
<tbody id="planningBody">
<!-- Rempli par family-calendar.js -->
</tbody>
</table>
</div>
</section>
<script src="/assets/js/family-calendar.js"></script>
<?php
require __DIR__ . '/partials/footer.php';