Swathi6 commited on
Commit
6178d86
·
verified ·
1 Parent(s): 6ff532d

Create templates/Update_profile.html

Browse files
Files changed (1) hide show
  1. templates/Update_profile.html +72 -0
templates/Update_profile.html ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Update Profile</title>
7
+ <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
8
+ <style>
9
+ .back-to-menu {
10
+ display: block;
11
+ margin: 30px auto 10px auto;
12
+ padding: 10px 20px;
13
+ background-color: #ff5722;
14
+ color: #ffffff;
15
+ border: none;
16
+ border-radius: 25px;
17
+ font-size: 1rem;
18
+ font-weight: bold;
19
+ text-align: center;
20
+ text-decoration: none;
21
+ width: 100%;
22
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
23
+ transition: background-color 0.3s ease;
24
+ }
25
+ .back-to-menu:hover {
26
+ background-color: #e64a19;
27
+ text-decoration: none;
28
+ }
29
+ </style>
30
+ </head>
31
+ <body>
32
+ <div class="container mt-4">
33
+ <h1>Update Profile</h1>
34
+
35
+ <form method="POST">
36
+ <div class="mb-3">
37
+ <label for="customerName" class="form-label"><strong>Name:</strong></label>
38
+ <input type="text" class="form-control" id="customerName" name="customerName" value="{{ customer['name'] }}" readonly>
39
+ <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('customerName')">Change</button>
40
+ </div>
41
+
42
+ <div class="mb-3">
43
+ <label for="email" class="form-label"><strong>Email:</strong></label>
44
+ <input type="email" class="form-control" id="email" name="email" value="{{ customer['email'] }}" readonly>
45
+ <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('email')">Change</button>
46
+ </div>
47
+
48
+ <div class="mb-3">
49
+ <label for="phone" class="form-label"><strong>Phone:</strong></label>
50
+ <input type="text" class="form-control" id="phone" name="phone" value="{{ customer['phone'] }}" readonly>
51
+ <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('phone')">Change</button>
52
+ </div>
53
+
54
+ <div class="mb-3">
55
+ <label for="referralCode" class="form-label"><strong>Referral Code:</strong></label>
56
+ <input type="text" class="form-control" id="referralCode" name="referralCode" value="{{ customer['referral_code'] }}" readonly>
57
+ <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('referralCode')">Change</button>
58
+ </div>
59
+
60
+ <div class="mb-3">
61
+ <label for="rewardPoints" class="form-label"><strong>Reward Points:</strong></label>
62
+ <input type="text" class="form-control" id="rewardPoints" name="rewardPoints" value="{{ customer['reward_points'] }}" readonly>
63
+ <button type="button" class="btn btn-outline-secondary mt-2" onclick="enableEditField('rewardPoints')">Change</button>
64
+ </div>
65
+
66
+ <button type="submit" class="btn btn-primary">Update Profile</button>
67
+ </form>
68
+
69
+ <a href="/menu" class="back-to-menu">Back to Menu</a>
70
+ </div>
71
+ </body>
72
+ </html>