Skip to content
Snippets Groups Projects
Commit 3305d0a9 authored by bernice's avatar bernice
Browse files

added templates for payment

parent 2e87a1a8
Branches
No related tags found
No related merge requests found
<!-- Payment form template -->
{% extends "cust/base.html" %}
{% block title %}
Select Showing
{% endblock %}
<title>Customer</title>
{% endblock title %}
{% block content %}
<h1 style="font-family:'Times New Roman';"> Insert card Details</h1>
{% if show %}
<p><b>Movie:</b></p>
<table class="account_list">
<thead>
<tr>
<th>Time</th>
<th>Title</th>
<th>Age Rating</th>
<th>Duration</th>
<th>Description</th>
<th>Screen</th>
<th>Socially Distanced</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ show.showingTime }}</td>
<td>{{ show.filmTitle }}</td>
<td>{{ show.ageRating }}</td>
<td>{{ show.filmDuration }} hrs</td>
<td>{{ show.trailerDescription }}</td>
<td>{{ show.screen_id }}</td>
<td>{{ show.sociallyDistanced }}</td>
</tr>
</tbody>
</table>
{% endif %}
<br>
<form method="POST">
<body>
{% csrf_token %}
<form method="POST" action="{% url 'payment' %}">
{% csrf_token %}
<div>
<label for="cardholderName"><b>Cardholder name:</b></label>
<input type="text" name="cardholderName" id="cardholderName" required>
<br>
<label for="cardNumber"><b>Card Number:</b></label>
<input type="text" name="cardNumber" id="cardNumber" required>
<br>
<label for="expiryDate"><b>Expiry Date (MM/YY):</b></label>
<input type="text" name="expiryDate" id="expiryDate" required>
<br>
<p><b>Card Type:</b></p>
<input type="radio" name="cardType" id="credit" value="credit" required>
<label for="credit">Credit</label>
<input type="radio" name="cardType" id="debit" value="debit" required>
<label for="debit">Debit</label>
</div>
<br>
<input type="submit" value="Make Booking">
<button type="submit" id="checkout-button">Pay</button>
</form>
</body>
{% endblock %}
\ No newline at end of file
{% endblock content %}
\ No newline at end of file
......@@ -57,12 +57,12 @@
</table>
<br>
<table class="">
<form action="{% url 'cust:book_tickets' %}" method="get"><center>
<form action="{% url 'cust:payment' %}" method="get"><center>
<label for="tickets">Number of tickets: </label>
<input type="number" name="tickets" id="tickets" min="1" max="10" value="1">
<br>
<p> </p>
<button type="submit" class="w3-button w3-green button4" style="margin-right: 10px;"> Proceed to Booking</button>
<button type="submit" class="w3-button w3-green button4" style="margin-right: 10px;" href="{% url 'cust:payment'%}"> Proceed to Booking</button>
</center></form>
{% comment %} </table>
<table class="">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment