changes
This commit is contained in:
21
views/buy.ejs
Normal file
21
views/buy.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Buy a Ticket</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/nav') %>
|
||||
<div class="content">
|
||||
<form id="buy" method="post" action="/buy">
|
||||
Email Address to receive tickets:<br>
|
||||
<input type="email" name="email"><br>
|
||||
Number of Tickets:<br>
|
||||
<input type="number" min="1" max="4" step="1" placeholder="1" name="qty"><br>
|
||||
Pay how much for each ticket:<br>
|
||||
<input type="number" min="1.00" max="1000.00" step="0.01" placeholder="50.00" name="amount"><br>
|
||||
<button id="Submit" type="submit">Pay</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
21
views/opencamping.ejs
Normal file
21
views/opencamping.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Buy a Ticket</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/nav') %>
|
||||
<div class="content">
|
||||
<form id="buy" method="post" action="/buy">
|
||||
Email Address to receive tickets:
|
||||
<input type="email" name="email">
|
||||
Number of Tickets:
|
||||
<input type="number" min="1" max="4" step="1" placeholder="1" name="qty">
|
||||
Pay how much for each ticket:
|
||||
<input type="number" min="1.00" max="1000.00" step="0.01" placeholder="50.00" name="amount">
|
||||
<button id="Submit" type="submit">Pay</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,10 @@
|
||||
<!-- views/partials/nav.ejs -->
|
||||
<div class="nav">
|
||||
Falls on Fire<br>
|
||||
<a href="/buy">Buy Tickets</a><br>
|
||||
<%if (typeof username!='undefined' && username) {%>
|
||||
<a href="/mytickets">View My Tickets</a><br>
|
||||
<%}%>
|
||||
<%if (typeof superuser!='undefined' && superuser) {%>
|
||||
<a href="/camps">View Camps (Admin)</a><br>
|
||||
<a href="/settings">Settings (Admin)</a><br>
|
||||
|
||||
Reference in New Issue
Block a user