Yaswanth56 commited on
Commit
0c294aa
·
verified ·
1 Parent(s): 63b254b

Create rewards_above.html

Browse files
flask-salesforce-app/templates/rewards_above.html ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>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>
25
+ </html>