Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Update Profile</title> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <style> | |
| .back-to-menu { | |
| display: block; | |
| margin: 30px auto 10px auto; | |
| padding: 10px 20px; | |
| background-color: #ff5722; | |
| color: #ffffff; | |
| border: none; | |
| border-radius: 25px; | |
| font-size: 1rem; | |
| font-weight: bold; | |
| text-align: center; | |
| text-decoration: none; | |
| width: 100%; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | |
| transition: background-color 0.3s ease; | |
| } | |
| .back-to-menu:hover { | |
| background-color: #e64a19; | |
| text-decoration: none; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container mt-4"> | |
| <h1>Update Profile</h1> | |
| <form method="POST"> | |
| <div class="mb-3"> | |
| <label for="customerName" class="form-label"><strong>Name:</strong></label> | |
| <input type="text" class="form-control" id="customerName" name="customerName" value="{{ customer['name'] }}" readonly> | |
| <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('customerName')">Change</button> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="email" class="form-label"><strong>Email:</strong></label> | |
| <input type="email" class="form-control" id="email" name="email" value="{{ customer['email'] }}" readonly> | |
| <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('email')">Change</button> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="phone" class="form-label"><strong>Phone:</strong></label> | |
| <input type="text" class="form-control" id="phone" name="phone" value="{{ customer['phone'] }}" readonly> | |
| <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('phone')">Change</button> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="referralCode" class="form-label"><strong>Referral Code:</strong></label> | |
| <input type="text" class="form-control" id="referralCode" name="referralCode" value="{{ customer['referral_code'] }}" readonly> | |
| <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('referralCode')">Change</button> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="rewardPoints" class="form-label"><strong>Reward Points:</strong></label> | |
| <input type="text" class="form-control" id="rewardPoints" name="rewardPoints" value="{{ customer['reward_points'] }}" readonly> | |
| <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('rewardPoints')">Change</button> | |
| </div> | |
| <button type="submit" class="btn btn-primary">Update Profile</button> | |
| </form> | |
| <a href="/menu" class="back-to-menu">Back to Menu</a> | |
| </div> | |
| </body> | |
| </html> | |