summaryrefslogtreecommitdiff
path: root/views/create.ejs
blob: b9956398ecc6ffc3e2fbd5972db7c76f572fd710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%- include('header', { title: title.title_name }) %>
<style>form{display:block;margin-left:170px;}</style>
<a href="/info/<%= title.title_id %>"><img class="logo" src="/<%= title.title_id %>/cover.jpg"></a>
<form action="/create/<%= title.title_id %>" method="post">
<p>
Scenario:<br>
<select id="scenario" name="scenario">
<% scenarios.forEach((scenario) => { %>
<option value="<%= scenario %>"><%= scenario %></option>
<% }); %>
</select>
<%- include('../public/' + title.title_id + '/create.html') %>
<p>
Description:<br>
<input type="text" autocomplete="off" id="description" name="description" size="50">
<p>
<label>
<input type="checkbox" id="random" name="random" value="random">
<span>Random player roles</span>
</label>
<p>
<label>
<input type="checkbox" id="private" name="private" value="private">
<span>Private</span>
</label>
<p>
<button type="submit">Create</button>
</form>