Skip to content
Snippets Groups Projects
Commit f55602b2 authored by Nils G.'s avatar Nils G.
Browse files

Added ability to set info text via controller

parent 1f1a3a01
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,8 @@ def index(): ...@@ -5,5 +5,8 @@ def index():
def content(): def content():
player_record, room_record = COOKIE_GET() player_record, room_record = COOKIE_GET()
response.view = "default/login.html"
return dict() if not player_record or not room_record:
#No cookie set - Show login form
response.view = "default/login.html"
return dict()
{{try:}}
{{if info:}}
<script type="text/javascript">set_info("{{=info}}");</script>
{{pass}}
{{except NameError:}}
{{pass}}
{{include 'default/info_popup.html'}}
<form id="form_login"> <form id="form_login">
<input type="text" id="room_code" placeholder="Room Code" maxlength="4"><br><br> <input type="text" id="room_code" placeholder="Room Code" maxlength="4"><br><br>
<input type="text" id="user_name" placeholder="User Name" maxlength="15"><br><br> <input type="text" id="user_name" placeholder="User Name" maxlength="15"><br><br>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment