This commit is contained in:
2026-03-23 20:13:11 +01:00
parent 39b8b64116
commit 9424b44fd9
2 changed files with 9 additions and 3 deletions
+7
View File
@@ -242,6 +242,13 @@
border: 1px solid #cbd5e1; border: 1px solid #cbd5e1;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
cursor: pointer;
transition: all 0.2s;
}
.month-actions .btn-icon-small:hover {
background: #f8fafc;
border-color: #94a3b8;
} }
/* --- 5. TABLEAU MODERNE --- */ /* --- 5. TABLEAU MODERNE --- */
+2 -3
View File
@@ -86,7 +86,7 @@ while ($row = $stmtNotes->fetch(PDO::FETCH_ASSOC)) {
<th class="sticky-col" style="background:#f8fafc;">Poste / Mois</th> <th class="sticky-col" style="background:#f8fafc;">Poste / Mois</th>
<?php foreach ($months as $month): ?> <?php foreach ($months as $month): ?>
<th> <th>
<div class="month-header-container"> <div class="month-header-container" style="display: flex; flex-direction: column; align-items: center; gap: 6px;">
<div style="display:flex; flex-direction:column; text-align:center;"> <div style="display:flex; flex-direction:column; text-align:center;">
<span class="month-name"><?= date('M Y', strtotime($month)) ?></span> <span class="month-name"><?= date('M Y', strtotime($month)) ?></span>
<?php <?php
@@ -96,7 +96,7 @@ while ($row = $stmtNotes->fetch(PDO::FETCH_ASSOC)) {
} }
?> ?>
</div> </div>
<div class="month-actions"> <div class="month-actions" style="justify-content: center; width: 100%;">
<button class="btn-icon-small" title="Modifier avec Modale" <button class="btn-icon-small" title="Modifier avec Modale"
data-json="<?= htmlspecialchars(json_encode($data[$month] ?? []), ENT_QUOTES, 'UTF-8') ?>" data-json="<?= htmlspecialchars(json_encode($data[$month] ?? []), ENT_QUOTES, 'UTF-8') ?>"
onclick='editCustomSavingsMonth("<?= $month ?>", "<?= $currentOwner ?>", JSON.parse(this.getAttribute("data-json")))'> onclick='editCustomSavingsMonth("<?= $month ?>", "<?= $currentOwner ?>", JSON.parse(this.getAttribute("data-json")))'>
@@ -147,7 +147,6 @@ while ($row = $stmtNotes->fetch(PDO::FETCH_ASSOC)) {
value="<?= $amount != 0 ? round($amount) : '' ?>" value="<?= $amount != 0 ? round($amount) : '' ?>"
placeholder="-" placeholder="-"
onchange="updateEpargneCell('<?= $month ?>', '<?= htmlspecialchars($cat, ENT_QUOTES) ?>', '<?= $currentOwner ?>', this)"> onchange="updateEpargneCell('<?= $month ?>', '<?= htmlspecialchars($cat, ENT_QUOTES) ?>', '<?= $currentOwner ?>', this)">
<span style="color:var(--text-muted); font-size:0.8rem;">€</span>
</div> </div>
</td> </td>
<?php endforeach; ?> <?php endforeach; ?>