Spaces:
Sleeping
Sleeping
Update templates/rewards_above.html
Browse files- templates/rewards_above.html +23 -15
templates/rewards_above.html
CHANGED
@@ -2,23 +2,31 @@
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
-
<
|
6 |
-
<
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
-
<div class="
|
11 |
-
<
|
12 |
-
<p>
|
13 |
-
<
|
14 |
-
|
15 |
-
<input type="
|
16 |
-
<
|
17 |
-
<input type="number" name="bill_amount" id="bill_amount" required>
|
18 |
-
<label>
|
19 |
-
<input type="checkbox" name="apply_rewards"> Apply Reward Points
|
20 |
-
</label>
|
21 |
-
<button type="submit">Calculate Bill</button>
|
22 |
</form>
|
23 |
</div>
|
24 |
</body>
|
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
+
<title>Your Rewards</title>
|
6 |
+
<style>
|
7 |
+
body {
|
8 |
+
display: flex;
|
9 |
+
justify-content: center;
|
10 |
+
align-items: center;
|
11 |
+
height: 100vh;
|
12 |
+
background-color: #f7f7f7;
|
13 |
+
}
|
14 |
+
.reward-container {
|
15 |
+
padding: 20px;
|
16 |
+
border: 1px solid #ccc;
|
17 |
+
background-color: white;
|
18 |
+
text-align: center;
|
19 |
+
}
|
20 |
+
</style>
|
21 |
</head>
|
22 |
<body>
|
23 |
+
<div class="reward-container">
|
24 |
+
<h2>Your Reward Points</h2>
|
25 |
+
<p>Current Reward Points: {{ reward_points }}</p>
|
26 |
+
<form method="POST" action="/apply_rewards">
|
27 |
+
<input type="hidden" name="email" value="{{ email }}">
|
28 |
+
<input type="number" name="reward_points" value="0" required>
|
29 |
+
<button type="submit">Apply Rewards</button>
|
|
|
|
|
|
|
|
|
|
|
30 |
</form>
|
31 |
</div>
|
32 |
</body>
|