mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
admin: replace header 'Ajouter un TFE' nav link with toolbar button
This commit is contained in:
@@ -352,6 +352,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
<dd class="admin-stat__number"><?= $stats['pending'] ?></dd>
|
<dd class="admin-stat__number"><?= $stats['pending'] ?></dd>
|
||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
|
<a href="/admin/add.php" class="admin-btn admin-btn--sm">Ajouter un TFE</a>
|
||||||
<button type="button" class="admin-btn admin-btn--sm" id="import-dialog-btn"
|
<button type="button" class="admin-btn admin-btn--sm" id="import-dialog-btn"
|
||||||
onclick="document.getElementById('import-dialog').showModal()">
|
onclick="document.getElementById('import-dialog').showModal()">
|
||||||
Importer un CSV
|
Importer un CSV
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ $_thesisId = $_GET['id'] ?? null;
|
|||||||
</a>
|
</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/admin/" <?= $_currentPage === 'index.php' ? 'aria-current="page"' : '' ?>>Liste des TFE</a></li>
|
<li><a href="/admin/" <?= $_currentPage === 'index.php' ? 'aria-current="page"' : '' ?>>Liste des TFE</a></li>
|
||||||
<li><a href="/admin/add.php" <?= $_currentPage === 'add.php' ? 'aria-current="page"' : '' ?>>Ajouter un TFE</a></li>
|
|
||||||
<li><a href="/admin/pages.php" <?= in_array($_currentPage, ['pages.php', 'pages-edit.php']) ? 'aria-current="page"' : '' ?>>Pages statiques</a></li>
|
<li><a href="/admin/pages.php" <?= in_array($_currentPage, ['pages.php', 'pages-edit.php']) ? 'aria-current="page"' : '' ?>>Pages statiques</a></li>
|
||||||
<li><a href="/admin/tags.php" <?= $_currentPage === 'tags.php' ? 'aria-current="page"' : '' ?>>Mots-clés</a></li>
|
<li><a href="/admin/tags.php" <?= $_currentPage === 'tags.php' ? 'aria-current="page"' : '' ?>>Mots-clés</a></li>
|
||||||
<li><a href="/admin/system.php" <?= in_array($_currentPage, ['system.php', 'status.php', 'logs.php']) ? 'aria-current="page"' : '' ?>>Système</a></li>
|
<li><a href="/admin/system.php" <?= in_array($_currentPage, ['system.php', 'status.php', 'logs.php']) ? 'aria-current="page"' : '' ?>>Système</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user