blob: 912156c546f7aeedc22c8e572ff49b6e744efbb8 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
//- vim:ts=4:sw=4:
doctype html
html
head
include head
title= title.title_name
body
include header
article
h1= title.title_name
div.logo
+gamecover(title.title_id)
if limit
p.error= limit
if !user
p.error You are not logged in!
form(method="post" action="/create/"+title.title_id)
if Array.isArray(scenarios)
if scenarios.length > 1
p Scenario:
br
select(name="scenario")
each scenario in scenarios
option(value=scenario)= scenario
else
input(type="hidden" name="scenario" value=scenarios[0])
else
p Scenario:
br
select(name="scenario")
each list, name in scenarios
if name === ""
each scenario in list
option(value=scenario)= scenario
else
optgroup(label=name)
each scenario in list
option(value=scenario)= scenario
| !{ title.create_html }
if user
p Notice:
br
input(type="text" autocomplete="off" name="notice" size=45 placeholder="What are you looking for?")
p Pace:
br
label
input(type="radio" name="pace" value="0" checked)
| Any
br
label
input(type="radio" name="pace" value="1")
| #{EMOJI_LIVE} Live
br
label
input(type="radio" name="pace" value="2")
| #{EMOJI_FAST} Fast <i>– many moves per day</i>
br
label
input(type="radio" name="pace" value="3")
| #{EMOJI_SLOW} Slow <i>– one move per day</i>
p
label
input(type="checkbox" name="is_random" value="true")
| Random player roles
p
label
input(type="checkbox" name="is_private" value="true")
| Private
if !limit
p
button(type="submit") Create
else
p <a href="/login">Login</a> or <a href="/signup">sign up</a> to play.
|