feat: editable customer email in admin + email validation on public form
This commit is contained in:
parent
4af9322c9d
commit
bf9f9e09fd
4 changed files with 48 additions and 13 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Reference in a new issue