39647-vm/admin.html
tornikegerantia 8f32ec7d16 Add an admin interface to edit product details for all boxes
Create a new admin page and backend endpoints to allow authorized users to modify product price, image, and description for the eight boxes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 375ec6d3-d5af-4f82-ab81-5c60fd4a86a3
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 534b4c21-8691-4e0a-ba0c-0091bb20606a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/147e665c-8c0d-48ec-b0ad-fdc89cd4460f/375ec6d3-d5af-4f82-ab81-5c60fd4a86a3/e238nM8
Replit-Helium-Checkpoint-Created: true
2026-04-15 00:27:21 +00:00

39 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Box Editor</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="admin-page">
<div class="admin-panel">
<div class="admin-header">
<div>
<h1>Administrator box editor</h1>
<p>Change the price, picture, and description for all 8 boxes.</p>
</div>
<a class="auth-tab admin-home-link" href="index.html">Back to home</a>
</div>
<div class="admin-code-row">
<label for="admin-code">Admin code</label>
<input class="auth-input" id="admin-code" type="password" placeholder="Enter admin code" autocomplete="off" />
<button class="auth-submit admin-small-button" id="load-boxes" type="button">Load boxes</button>
</div>
<p id="admin-message" class="auth-note">Enter the admin code to edit box details.</p>
<form id="admin-form" class="admin-grid" style="display:none;"></form>
<div class="admin-actions" id="admin-actions" style="display:none;">
<button class="auth-submit" id="save-boxes" type="button">Save all box changes</button>
<a class="auth-tab admin-home-link" href="order.html">View order page</a>
</div>
</div>
</div>
<script src="js/admin.js"></script>
</body>
</html>