39647-vm/box-editor.html
Flatlogic Bot 986d159d20 1
2026-04-15 10:39:38 +00:00

40 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>Box Data 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>Box data editor</h1>
<p>Update the name, price, picture, and description for all 8 boxes.</p>
</div>
<a class="auth-tab admin-home-link" href="order.html">View boxes</a>
</div>
<div class="admin-code-row">
<label for="editor-code">Editor code</label>
<input class="auth-input" id="editor-code" type="password" placeholder="Enter editor code" autocomplete="off" />
<button class="auth-submit admin-small-button" id="load-boxes" type="button">Load boxes</button>
</div>
<p id="editor-message" class="auth-note">Tip: you can also edit <strong>backend/data/boxes.json</strong> directly in the codebase.</p>
<form id="editor-form" class="admin-grid" style="display:none;"></form>
<div class="admin-actions" id="editor-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="index.html">Back to home</a>
</div>
</div>
</div>
<script src="js/box-editor.js"></script>
</body>
</html>