This commit is contained in:
2025-02-21 20:54:53 -05:00
parent 0ad4f0d6c2
commit f0ef9c621c
3 changed files with 70 additions and 72 deletions

View File

@@ -1,33 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Your Ticket</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<%- include('partials/nav') %>
<div class="content">
To use <%=ticket%>, visit this URL: <%=useurl%><br>
Or scan this QR Code:<br>
<img class="qrcode-image" width=300 height=300 src="<%=qrcode%>" alt="QR Code"><br>
<% if (paid==0) { %>
Tickets are pay-what-you-can, minimum $1, suggested $50.<br>
To pay for this ticket by credit card, enter an amount:
<form id="pay" method="POST" action="/pay0">
<input type="hidden" name="ticket" value="<%=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>
<% } else { %>
This ticket has already been paid for. ($<%=(paid/100).toFixed(2)%>)
<% } %>
<form id="editor" method="POST" action="/oneticket">
To transfer <%=ticket%>, enter the recipient's email address:<br>
<input type="hidden" name="ticket" value="<%=ticket%>">
<input type="email" placeholder="yourfriend@xyz.com" value="<%=offered%>" name="offered">
<button id="Submit" type="submit">Transfer</button>
<br>
</form>
</div>
</body>
<head>
<title>Your Ticket</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<%- include('partials/nav') %>
<div class="content">
<% if (superuser) { %>
Note: This page is being displayed as Superuser.<br>
<% } %>
To use <%=ticket%>, visit this URL: <%=useurl%><br>
Or scan this QR Code:<br>
<img class="qrcode-image" width=300 height=300 src="<%=qrcode%>" alt="QR Code"><br>
<% if (paid==0) { %>
Tickets are pay-what-you-can, minimum $1, suggested $50.<br>
To pay for this ticket by credit card, enter an amount:
<form id="pay" method="POST" action="/pay0">
<input type="hidden" name="ticket" value="<%=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>
<% } else { %>
This ticket has already been paid for. ($<%=(paid/100).toFixed(2)%>)
<% } %>
<form id="editor" method="POST" action="/oneticket">
To transfer <%=ticket%>, enter the recipient's email address:<br>
<input type="hidden" name="ticket" value="<%=ticket%>">
<input type="email" placeholder="yourfriend@xyz.com" value="<%=offered%>" name="offered">
<button id="Submit" type="submit">Transfer</button>
<br>
</form>
</div>
</body>
</html>