26 lines
No EOL
913 B
Text
26 lines
No EOL
913 B
Text
<%- include("../base/header", { title: "Join Party", userId: session.userId }) %>
|
|
<h1 class="text-center mb-5">Join Party</h1>
|
|
<form method="post">
|
|
<div class="row">
|
|
<div class="col-4"></div>
|
|
<div class="col-4">
|
|
<% if (typeof(error) === "string") { %>
|
|
<div class="alert alert-danger">
|
|
<%= error %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<div class="form-group mt-3">
|
|
<label class="form-label">Join Code / Party ID <span style="font-size: 10pt;">e.g. "<b>3EGGS</b>"</span></label>
|
|
<input class="form-control" type="text" name="partyRef" minlength="5" maxlength="5" value="<%= typeof(partyRef) === "undefined" ? "" : partyRef %>" required />
|
|
</div>
|
|
|
|
<div class="text-center mt-5">
|
|
<input class="btn btn-primary" type="submit" value="Join" />
|
|
<a class="btn btn-danger ms-2" href="/">Cancel</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-4"></div>
|
|
</div>
|
|
</form>
|
|
<%- include("../base/footer") %> |