mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
All admin pages refactored to thin controllers + pure view templates, mirroring the public-page pattern: Controllers (public/admin/*.php): auth, data loading, include template Views (templates/admin/*.php): pure HTML/PHP output Fragment partials (templates/admin/partials/): toast, system-log-panel, system-nginx-config-panel Pages migrated: login, tags, contenus, contenus-edit, account, acces-etudiante, thanks, add, edit, parametres, system, index Fragment endpoints refactored: system-fragment.php, toast-fragment.php Skipped (pure redirects): logout, logs, status, import
19 lines
513 B
PHP
19 lines
513 B
PHP
<!-- Toast region — polled by HTMX after page load -->
|
|
<aside id="toast-region"
|
|
aria-live="polite"
|
|
hx-get="/admin/toast-fragment.php"
|
|
hx-trigger="load"
|
|
hx-swap="innerHTML"
|
|
hx-target="#toast-region">
|
|
</aside>
|
|
|
|
<?php foreach ($extraJs ?? [] as $js): ?>
|
|
<script src="<?= App::assetV($js) ?>"></script>
|
|
<?php endforeach; ?>
|
|
<?php if (!empty($extraJsInline)): ?>
|
|
<script><?= $extraJsInline ?></script>
|
|
<?php endif; ?>
|
|
<script src="/assets/js/htmx.min.js"></script>
|
|
</body>
|
|
</html>
|