feat: editable customer email in admin + email validation on public form

This commit is contained in:
Troll (Hermes Agent) 2026-08-02 16:51:32 +00:00
parent 4af9322c9d
commit bf9f9e09fd
4 changed files with 48 additions and 13 deletions

View file

@ -133,8 +133,18 @@
<!-- Section 1: Customer info summary -->
<div class="section">
<h2>Customer Info</h2>
<div class="info-grid">
<div><strong>Email:</strong> {{ req.email }}</div>
<p class="copy-hint">Operators can correct the customer's email address here.</p>
<form method="POST">
<input type="hidden" name="action" value="update_customer_email">
<label for="customer_email">Email address</label>
<input type="email" id="customer_email" name="email" value="{{ req.email }}" required>
<div class="actions">
<button type="submit" class="secondary">Update Email</button>
</div>
</form>
<div class="info-grid" style="margin-top:1rem">
<div><strong>Request #:</strong> {{ req.id }}</div>
<div><strong>Status:</strong> {{ statuses[req.status] }}</div>
</div>
<p><strong>Hobbies:</strong><br>{{ req.hobbies or '-' }}</p>