trad
This commit is contained in:
+56
-71
@@ -6,9 +6,9 @@ error_reporting(E_ALL);
|
||||
require __DIR__ . '/includes/auth.php';
|
||||
require_login();
|
||||
require __DIR__ . '/includes/db.php';
|
||||
require_once __DIR__ . '/includes/i18n.php';
|
||||
|
||||
|
||||
$pageTitle = "PachaFamily - Family Calendar";
|
||||
$pageTitle = tr('fc_page_title');
|
||||
$activePage = "family-calendar";
|
||||
$bodyClass = "pf-family-calendar";
|
||||
$pageCss = "/modules/family-calendar/family-calendar.css";
|
||||
@@ -16,20 +16,18 @@ $pageCss = "/modules/family-calendar/family-calendar.css";
|
||||
require __DIR__ . '/header.php';
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="pf-container" style="max-width:100%; padding:0;">
|
||||
<div class="fc-header-row">
|
||||
<h1>Family Calendar</h1>
|
||||
<h1><?= tr('fc_main_header') ?></h1>
|
||||
|
||||
<div style="display: flex; gap: 10px;">
|
||||
<button id="btnOpenSnapshotModal" class="pf-btn-icon-text">
|
||||
<span class="icon">⚖️</span>
|
||||
<span class="text">Corriger les soldes</span>
|
||||
<span class="text"><?= tr('fc_btn_correct_balances') ?></span>
|
||||
</button>
|
||||
<button id="btnOpenHolidays" class="pf-btn-icon-text">
|
||||
<span class="icon">🏖️</span>
|
||||
<span class="text">Voir les vacances scolaires</span>
|
||||
<span class="text"><?= tr('fc_btn_school_holidays') ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,20 +35,19 @@ require __DIR__ . '/header.php';
|
||||
<div id="modalHolidays" class="fc-modal-overlay" style="display: none;">
|
||||
<div class="fc-modal-content">
|
||||
<div class="fc-modal-header">
|
||||
<h2>Vacances Scolaires (Zone C)</h2>
|
||||
<h2><?= tr('fc_modal_holidays_title') ?></h2>
|
||||
<button id="btnCloseHolidays" class="fc-modal-close">×</button>
|
||||
</div>
|
||||
<div class="fc-modal-body">
|
||||
<table id="schoolHolidaysTable" class="fc-holidays-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Période</th>
|
||||
<th>Du</th>
|
||||
<th>Au</th>
|
||||
<th><?= tr('fc_col_period') ?></th>
|
||||
<th><?= tr('fc_col_from') ?></th>
|
||||
<th><?= tr('fc_col_to') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -59,20 +56,20 @@ require __DIR__ . '/header.php';
|
||||
<div id="modalSnapshot" class="fc-modal-overlay" style="display: none;">
|
||||
<div class="fc-modal-content" style="max-width: 400px;">
|
||||
<div class="fc-modal-header">
|
||||
<h2>Ajuster un solde</h2>
|
||||
<h2><?= tr('fc_modal_snap_title') ?></h2>
|
||||
<button id="btnCloseSnapshot" class="fc-modal-close">×</button>
|
||||
</div>
|
||||
<div class="fc-modal-body" style="padding: 24px;">
|
||||
<form id="formSnapshot">
|
||||
<div style="margin-bottom: 16px;">
|
||||
<label class="pf-label">Personne</label>
|
||||
<label class="pf-label"><?= tr('fc_label_person') ?></label>
|
||||
<select id="snapPerson" class="pf-input" required>
|
||||
<option value="2">Alex</option>
|
||||
<option value="3">Laia</option>
|
||||
</select>
|
||||
</div>
|
||||
<div style="margin-bottom: 16px;">
|
||||
<label class="pf-label">Type de congé</label>
|
||||
<label class="pf-label"><?= tr('fc_label_leave_type') ?></label>
|
||||
<select id="snapType" class="pf-input" required>
|
||||
<option value="CP">CP</option>
|
||||
<option value="JRA">JRA</option>
|
||||
@@ -80,14 +77,14 @@ require __DIR__ . '/header.php';
|
||||
</select>
|
||||
</div>
|
||||
<div style="margin-bottom: 16px;">
|
||||
<label class="pf-label">Date d'application</label>
|
||||
<input type="date" id="snapDate" class="pf-input" required title="Choisissez de préférence le 1er jour d'un mois">
|
||||
<label class="pf-label"><?= tr('fc_label_apply_date') ?></label>
|
||||
<input type="date" id="snapDate" class="pf-input" required title="<?= tr('fc_snap_date_hint') ?>">
|
||||
</div>
|
||||
<div style="margin-bottom: 24px;">
|
||||
<label class="pf-label">Solde restant à cette date</label>
|
||||
<input type="number" step="0.5" id="snapBalance" class="pf-input" placeholder="ex: 12.5" required>
|
||||
<label class="pf-label"><?= tr('fc_label_remaining_balance') ?></label>
|
||||
<input type="number" step="0.5" id="snapBalance" class="pf-input" placeholder="<?= tr('fc_placeholder_balance') ?>" required>
|
||||
</div>
|
||||
<button type="submit" class="pf-btn" style="width: 100%;">Enregistrer le correctif</button>
|
||||
<button type="submit" class="pf-btn" style="width: 100%;"><?= tr('fc_btn_save_snap') ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,9 +94,9 @@ require __DIR__ . '/header.php';
|
||||
<div class="fc-month-calendar-wrapper">
|
||||
<div class="fc-month-header">
|
||||
<div class="fc-view-controls">
|
||||
<button class="fc-view-button fc-view-button--active" data-view="1month">1 mois</button>
|
||||
<button class="fc-view-button" data-view="2months">2 mois</button>
|
||||
<button class="fc-view-button" data-view="year">Année</button>
|
||||
<button class="fc-view-button fc-view-button--active" data-view="1month"><?= tr('fc_view_1m') ?></button>
|
||||
<button class="fc-view-button" data-view="2months"><?= tr('fc_view_2m') ?></button>
|
||||
<button class="fc-view-button" data-view="year"><?= tr('fc_view_year') ?></button>
|
||||
</div>
|
||||
<h3 id="fc-current-month-year"></h3>
|
||||
<div class="fc-nav-controls">
|
||||
@@ -107,7 +104,6 @@ require __DIR__ . '/header.php';
|
||||
<button id="fc-next-month" class="fc-nav-button">›</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-calendar-container">
|
||||
<div id="fc-month-calendar" class="fc-month-calendar"></div>
|
||||
<div id="fc-month-selectionMenu" class="fc-selection-menu" style="display:none;"></div>
|
||||
@@ -115,11 +111,9 @@ require __DIR__ . '/header.php';
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section class="pf-section">
|
||||
<div class="fc-week-header">
|
||||
<h2>Planning hebdo</h2>
|
||||
<h2><?= tr('fc_weekly_planning') ?></h2>
|
||||
<div class="fc-week-nav-controls">
|
||||
<button id="fc-prev-school-year" class="fc-nav-button">‹</button>
|
||||
<span id="fc-current-school-year-label"></span>
|
||||
@@ -129,28 +123,21 @@ require __DIR__ . '/header.php';
|
||||
|
||||
<div id="planningTable-wrapper">
|
||||
<table id="planningTable">
|
||||
<colgroup>
|
||||
<col class="col-month"><col class="col-month">
|
||||
<col class="col-day"><col class="col-day"><col class="col-day"><col class="col-day"><col class="col-day">
|
||||
<col class="col-total"><col class="col-total"><col class="col-total"><col class="col-total"><col class="col-total"><col class="col-total">
|
||||
<col class="col-alex-sub"><col class="col-alex-sub"><col class="col-alex-sub"><col class="col-alex-sub"><col class="col-alex-sub"><col class="col-alex-sub">
|
||||
<col class="col-laia-sub"><col class="col-laia-sub"><col class="col-laia-sub"><col class="col-laia-sub"><col class="col-laia-sub"><col class="col-laia-sub">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="3" class="col-month col-sticky-mois">Mois</th>
|
||||
<th rowspan="3" class="col-month col-sticky-mois">Sem.</th>
|
||||
<th rowspan="3" class="col-day">Lun</th>
|
||||
<th rowspan="3" class="col-day">Mar</th>
|
||||
<th rowspan="3" class="col-day">Mer</th>
|
||||
<th rowspan="3" class="col-day">Jeu</th>
|
||||
<th rowspan="3" class="col-day">Ven</th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Off Carole</span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Extra Off</span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Centre</span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Avis</span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Pep Malade</span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span>Présence</span></th>
|
||||
<th rowspan="3" class="col-month col-sticky-mois"><?= tr('fc_col_month') ?></th>
|
||||
<th rowspan="3" class="col-month col-sticky-mois"><?= tr('fc_col_week_short') ?></th>
|
||||
<th rowspan="3" class="col-day"><?= tr('day_mon') ?></th>
|
||||
<th rowspan="3" class="col-day"><?= tr('day_tue') ?></th>
|
||||
<th rowspan="3" class="col-day"><?= tr('day_wed') ?></th>
|
||||
<th rowspan="3" class="col-day"><?= tr('day_thu') ?></th>
|
||||
<th rowspan="3" class="col-day"><?= tr('day_fri') ?></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_off_carole') ?></span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_extra_off') ?></span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_centre') ?></span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_avis') ?></span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_pep_sick') ?></span></th>
|
||||
<th rowspan="3" class="col-total rotated-text"><span><?= tr('leg_presence') ?></span></th>
|
||||
<th colspan="6" class="col-alex header-group">ALEX</th>
|
||||
<th colspan="6" class="col-laia header-group">LAIA</th>
|
||||
</tr>
|
||||
@@ -159,12 +146,12 @@ require __DIR__ . '/header.php';
|
||||
<th colspan="2" class="col-laia-sub">CP</th><th colspan="2" class="col-laia-sub">JRA</th><th colspan="2" class="col-laia-sub">JA</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-alex-sub col-alex-av">Av.</th><th class="col-alex-sub col-alex-use">Use</th>
|
||||
<th class="col-alex-sub col-alex-av">Av.</th><th class="col-alex-sub col-alex-use">Use</th>
|
||||
<th class="col-alex-sub col-alex-av">Av.</th><th class="col-alex-sub col-alex-use">Use</th>
|
||||
<th class="col-laia-sub col-laia-av">Av.</th><th class="col-laia-sub col-laia-use">Use</th>
|
||||
<th class="col-laia-sub col-laia-av">Av.</th><th class="col-laia-sub col-laia-use">Use</th>
|
||||
<th class="col-laia-sub col-laia-av">Av.</th><th class="col-laia-sub col-laia-use">Use</th>
|
||||
<th class="col-alex-sub col-alex-av"><?= tr('fc_col_av') ?></th><th class="col-alex-sub col-alex-use"><?= tr('fc_col_use') ?></th>
|
||||
<th class="col-alex-sub col-alex-av"><?= tr('fc_col_av') ?></th><th class="col-alex-sub col-alex-use"><?= tr('fc_col_use') ?></th>
|
||||
<th class="col-alex-sub col-alex-av"><?= tr('fc_col_av') ?></th><th class="col-alex-sub col-alex-use"><?= tr('fc_col_use') ?></th>
|
||||
<th class="col-laia-sub col-laia-av"><?= tr('fc_col_av') ?></th><th class="col-laia-sub col-laia-use"><?= tr('fc_col_use') ?></th>
|
||||
<th class="col-laia-sub col-laia-av"><?= tr('fc_col_av') ?></th><th class="col-laia-sub col-laia-use"><?= tr('fc_col_use') ?></th>
|
||||
<th class="col-laia-sub col-laia-av"><?= tr('fc_col_av') ?></th><th class="col-laia-sub col-laia-use"><?= tr('fc_col_use') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="planningBody"></tbody>
|
||||
@@ -175,38 +162,36 @@ require __DIR__ . '/header.php';
|
||||
|
||||
<section class="pf-section pf-section--bottom-panels">
|
||||
<div class="fc-bottom-grid">
|
||||
|
||||
<div class="pf-card">
|
||||
<h2 class="pf-card-title">Légende</h2>
|
||||
<h2 class="pf-card-title"><?= tr('fc_legend_title') ?></h2>
|
||||
<div class="pf-card-body">
|
||||
<div class="pf-legend-grid">
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-school-holiday"></div><span>Vacances Scolaires</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-public-holiday"></div><span>Férié</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-off-carole"></div><span>Off Carole</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-extra-off-carole"></div><span>Extra Off</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-centre"></div><span>Centre</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-avis"></div><span>Avis</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-pep-sick"></div><span>Pep Malade</span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-school-holiday"></div><span><?= tr('leg_school_holidays') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-public-holiday"></div><span><?= tr('leg_public_holiday') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-off-carole"></div><span><?= tr('leg_off_carole') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-extra-off-carole"></div><span><?= tr('leg_extra_off') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-centre"></div><span><?= tr('leg_centre') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-avis"></div><span><?= tr('leg_avis') ?></span></div>
|
||||
<div class="pf-legend-item"><div class="pf-legend-color fc-legend-pep-sick"></div><span><?= tr('leg_pep_sick') ?></span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pf-card">
|
||||
<div class="pf-card-title fc-summary-header">
|
||||
<span>Récapitulatif</span>
|
||||
<span><?= tr('fc_summary_title') ?></span>
|
||||
<div class="fc-summary-controls">
|
||||
<select id="summType" class="fc-summ-select"> <option value="year">Année</option>
|
||||
<option value="month">Mois</option>
|
||||
</select>
|
||||
<select id="summValue" class="fc-summ-select"> </select>
|
||||
<select id="summType" class="fc-summ-select">
|
||||
<option value="year"><?= tr('fc_summ_year') ?></option>
|
||||
<option value="month"><?= tr('fc_summ_month') ?></option>
|
||||
</select>
|
||||
<select id="summValue" class="fc-summ-select"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pf-card-body">
|
||||
<div id="globalSummary" class="fc-summary-vertical">
|
||||
</div>
|
||||
<div id="globalSummary" class="fc-summary-vertical"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user