Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DESD-Group15
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c2-foonyee
DESD-Group15
Commits
3305d0a9
Commit
3305d0a9
authored
2 years ago
by
bernice
Browse files
Options
Downloads
Patches
Plain Diff
added templates for payment
parent
2e87a1a8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cust/templates/cust/payment.html
+13
-53
13 additions, 53 deletions
cust/templates/cust/payment.html
cust/templates/cust/ticket.html
+2
-2
2 additions, 2 deletions
cust/templates/cust/ticket.html
with
15 additions
and
55 deletions
cust/templates/cust/payment.html
+
13
−
53
View file @
3305d0a9
<!-- 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
This diff is collapsed.
Click to expand it.
cust/templates/cust/ticket.html
+
2
−
2
View file @
3305d0a9
...
...
@@ -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=
""
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment