Yaswanth56 commited on
Commit
ea1301b
·
verified ·
1 Parent(s): bd66aea

Update templates/rewards_above.html

Browse files
Files changed (1) hide show
  1. 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
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Rewards</title>
7
- <link rel="stylesheet" href="/static/styles.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  </head>
9
  <body>
10
- <div class="form-container">
11
- <h1>Reward Points</h1>
12
- <p>Available Points: <strong>{{ points }}</strong></p>
13
- <p>You have enough points to apply rewards!</p>
14
- <form action="/apply_rewards" method="POST">
15
- <input type="hidden" name="customer_id" value="{{ customer_id }}">
16
- <label for="bill_amount">Enter Bill Amount:</label>
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>