A tonne of updates to how the system builds the view points in hopes of having a better mobile expereince

This commit is contained in:
2025-07-24 12:42:27 -06:00
parent 8e133fb9b4
commit 37632d1dfc
17 changed files with 1253 additions and 98 deletions

View File

@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="description" content="Admin Panel - BNKops Map - Interactive canvassing web-app & viewer">
<title>Admin Panel</title>
@@ -272,59 +272,35 @@
<div class="users-admin-container">
<div class="user-form">
<h3>Create New User</h3>
<form id="user-form">
<form id="create-user-form">
<div class="form-group">
<label for="user-email">Email *</label>
<label for="user-email">Email</label>
<input type="email" id="user-email" required>
</div>
<div class="form-group">
<label for="user-password">Password *</label>
<input type="password" id="user-password" required minlength="6">
</div>
<div class="form-group">
<label for="user-name">Name</label>
<input type="text" id="user-name">
<input type="text" id="user-name" required>
</div>
<div class="form-group">
<label for="user-password">Password</label>
<input type="password" id="user-password" required>
</div>
<div class="form-group">
<label>
<input type="checkbox" id="user-admin"> Admin Access
<input type="checkbox" id="user-is-admin">
Is Admin
</label>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Create User</button>
<button type="button" class="btn btn-secondary" id="clear-user-form">Clear</button>
<button type="button" id="clear-user-form" class="btn btn-secondary">Clear</button>
</div>
</form>
</div>
<div class="users-list">
<h3>Existing Users</h3>
<div id="users-table-container">
<table id="users-table" class="users-table">
<thead>
<tr>
<th>Email</th>
<th>Name</th>
<th>Admin</th>
<th>Created</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="users-table-body">
<!-- Users will be loaded here -->
</tbody>
</table>
</div>
<div id="users-loading" class="loading-message" style="display: none;">
Loading users...
</div>
<div id="users-empty" class="empty-message" style="display: none;">
No users found.
</div>
<!-- User table will be dynamically inserted here -->
<p id="users-loading" class="loading-message">Loading users...</p>
</div>
</div>
</section>
@@ -393,6 +369,9 @@
console.log('Local QR Code implementation loaded');
</script>
<!-- Cache Management -->
<script src="js/cache-manager.js"></script>
<!-- Admin JavaScript -->
<script src="js/admin.js"></script>
</body>