File size: 919 Bytes
0c294aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Rewards</title>
    <link rel="stylesheet" href="/static/styles.css">
</head>
<body>
    <div class="form-container">
        <h1>Reward Points</h1>
        <p>Available Points: <strong>{{ points }}</strong></p>
        <p>You have enough points to apply rewards!</p>
        <form action="/apply_rewards" method="POST">
            <input type="hidden" name="customer_id" value="{{ customer_id }}">
            <label for="bill_amount">Enter Bill Amount:</label>
            <input type="number" name="bill_amount" id="bill_amount" required>
            <label>
                <input type="checkbox" name="apply_rewards"> Apply Reward Points
            </label>
            <button type="submit">Calculate Bill</button>
        </form>
    </div>
</body>
</html>