summaryrefslogtreecommitdiff
path: root/views/create.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-12 13:54:34 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-12 15:18:19 +0100
commit0e770aa13994f18f4d37bdddc670acfd17187e35 (patch)
treea72265b041ae862339890bf09c21773676f74cc9 /views/create.pug
parentfd29d12bca9b432eb42ec3fecdac28ffdb4393d1 (diff)
downloadserver-0e770aa13994f18f4d37bdddc670acfd17187e35.tar.gz
Improve login page.
Diffstat (limited to 'views/create.pug')
-rw-r--r--views/create.pug72
1 files changed, 40 insertions, 32 deletions
diff --git a/views/create.pug b/views/create.pug
index 7a8a6b8..4e52da4 100644
--- a/views/create.pug
+++ b/views/create.pug
@@ -13,6 +13,9 @@ html
div.logo
+gamecover(title.title_id)
+ 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
@@ -38,43 +41,48 @@ html
| !{ title.create_html }
- p Notice:
- br
- input(type="text" autocomplete="off" name="notice" size=45 placeholder="What are you looking for?")
+ 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
- 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="1")
- | #{EMOJI_LIVE} Live
+ br
+ label
+ input(type="radio" name="pace" value="2")
+ | #{EMOJI_FAST} Fast <i>&ndash; many moves per day</i>
- br
- label
- input(type="radio" name="pace" value="2")
- | #{EMOJI_FAST} Fast <i>&ndash; many moves per day</i>
+ br
+ label
+ input(type="radio" name="pace" value="3")
+ | #{EMOJI_SLOW} Slow <i>&ndash; one move per day</i>
- br
- label
- input(type="radio" name="pace" value="3")
- | #{EMOJI_SLOW} Slow <i>&ndash; 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_random" value="true")
- | Random player roles
+ p
+ label
+ input(type="checkbox" name="is_private" value="true")
+ | Private
- p
- label
- input(type="checkbox" name="is_private" value="true")
- | Private
+ if limit
+ p.error= limit
+ else
+ p
+ button(type="submit") Create
- if limit
- p.error= limit
else
- p
- button(type="submit") Create
+ p <a href="/login">Login</a> or <a href="/signup">sign up</a> to play.
+