This commit is contained in:
2026-01-25 17:28:58 +01:00
parent 58a349280f
commit 0cfc7b1773

View File

@@ -27,46 +27,6 @@
<div id="dashboard-layout" class="hidden"> <div id="dashboard-layout" class="hidden">
<header class="flex items-center justify-between"> <header class="flex items-center justify-between">
<div class="flex items-center"> <div class="flex items-center">
<img src="/static/img/logo.png" alt="ASF Logo" class="logo">
<h1 class="text-xl">ASF SSO Admin</h1>
</div>
<button id="logout-btn" class="btn btn-secondary">Logout</button>
</header>
<main class="p-8">
<!-- Tabs -->
<div class="flex gap-4 mb-8">
<button class="btn btn-primary" onclick="showSection('users')">Users</button>
<button class="btn btn-secondary" onclick="showSection('apps')">Applications</button>
</div>
<!-- Users Section -->
<div class="flex justify-between items-center mb-4">
<h2 class="text-2xl">Applications</h2>
<button class="btn btn-primary" onclick="addApp()">Add Application</button>
</div>
<div class="card">
<table id="apps-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>URL</th>
<th>API Key</th>
</tr>
</thead>
<tbody>
<!-- Apps will be populated here -->
</tbody>
</table>
</div>
</section>
</main>
</div>
<!-- User Modal -->
<div id="user-modal" class="modal-overlay hidden">
<div class="card modal">
<h3 class="text-xl mb-4">Add/Edit User</h3> <h3 class="text-xl mb-4">Add/Edit User</h3>
<form id="user-form"> <form id="user-form">
<input type="hidden" id="user-id"> <input type="hidden" id="user-id">
@@ -82,7 +42,8 @@
</label> </label>
</div> </div>
<div class="flex justify-end gap-4"> <div class="flex justify-end gap-4">
<button type="button" class="btn btn-secondary" onclick="closeModal('user-modal')">Cancel</button> <button type="button" class="btn btn-secondary"
onclick="closeModal('user-modal')">Cancel</button>
<button type="submit" class="btn btn-primary">Save</button> <button type="submit" class="btn btn-primary">Save</button>
</div> </div>
</form> </form>