blob: 36b86e206b284903e944a93b4231bf93f4457cc7 (
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
29
30
31
32
|
<%- 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>
<% if (scenarios.length > 1) { %>
Scenario:<br>
<select name="scenario">
<% scenarios.forEach((scenario) => { %>
<option value="<%= scenario %>"><%= scenario %></option>
<% }); %>
</select>
<% } else { %>
<input type="hidden" name="scenario" value="<%= scenarios[0] %>">
<% } %>
<%- include('../public/' + title.title_id + '/create.html') %>
<p>
Description:<br>
<input type="text" autocomplete="off" name="description" size="50">
<p>
<label>
<input type="checkbox" name="random" value="true">
Random player roles
</label>
<p>
<label>
<input type="checkbox" name="private" value="true">
Private
</label>
<p>
<button type="submit">Create</button>
</form>
|