This commit is contained in:
2025-03-04 21:34:18 -05:00
parent 1e2523ece7
commit 792a64fd13
4 changed files with 57 additions and 3 deletions

21
views/buy.ejs Normal file
View 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
View 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>

View File

@@ -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>