Spaces:
Sleeping
Sleeping
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Reward Points</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> | |
<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" id="bill_amount" name="bill_amount" placeholder="Enter Bill Amount" required> | |
{% if points >= 500 %} | |
<label> | |
<input type="checkbox" name="apply_rewards"> Apply Reward Points | |
</label> | |
{% else %} | |
<p>Discount not applicable for customers with below 500 points.</p> | |
{% endif %} | |
<button type="submit" class="btn">Calculate Bill</button> | |
</form> | |
</div> | |
</body> | |
</html> | |