28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
|
<%- include("../base/header", { title: typeof(party) === "undefined" ? "Create Party" : `Editing ${party.Name}` }) %>
|
||
|
<% if (typeof(party) === "undefined") { %>
|
||
|
<h1 class="text-center mb-5">Create Party</h1>
|
||
|
<% } else { %>
|
||
|
<h1 class="text-center mb-5">Editing <%= party.Name %></h1>
|
||
|
<% } %>
|
||
|
<form method="post">
|
||
|
<div class="row">
|
||
|
<div class="col-4"></div>
|
||
|
<div class="col-4">
|
||
|
<div class="form-group">
|
||
|
<label class="form-label">Party Name</label>
|
||
|
<input class="form-control" type="text" name="partyName" maxlength="64" required />
|
||
|
</div>
|
||
|
<div class="form-group mt-3">
|
||
|
<label class="form-label">Join Code / Party ID<br><span style="font-size: 10pt;">Pick something nice, e.g. "<b>3EGGS</b>"</span></label>
|
||
|
<input class="form-control" type="text" name="partyRef" minlength="5" maxlength="5" required />
|
||
|
</div>
|
||
|
|
||
|
<div class="text-center mt-5">
|
||
|
<input class="btn btn-primary" type="submit" value="Save" />
|
||
|
<a class="btn btn-danger ms-2" href="/">Cancel</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-4"></div>
|
||
|
</div>
|
||
|
</form>
|
||
|
<%- include("../base/footer") %>
|