Files
FOFTickets/views/oneticket.ejs

39 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2024-12-26 00:33:23 -05:00
<!DOCTYPE html>
<html>
2025-02-21 20:54:53 -05:00
<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)%>)
<% } %>
2025-03-03 23:53:35 -05:00
<% if (settings["enable-transfer"]) { %>
2025-02-21 20:54:53 -05:00
<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>
2025-03-03 23:53:35 -05:00
<% } %>
2025-02-21 20:54:53 -05:00
</div>
</body>
2024-12-26 00:33:23 -05:00
</html>