19 lines
606 B
HTML
19 lines
606 B
HTML
|
{% extends 'base.html' %}
|
||
|
{% from 'bootstrap/form.html' import render_form %}
|
||
|
|
||
|
{% block content %}
|
||
|
<h1>Play game</h1>
|
||
|
{% if game.password is not none and not session['logged_in'][game.uuid] %}
|
||
|
{{ render_form(game_login) }}
|
||
|
{% else %}
|
||
|
<h3>To share this game, just share the url to this page</h3>
|
||
|
{% if word is not none %}
|
||
|
<div><span>Your word is: {{ word.text }}</span></div>
|
||
|
{% endif %}
|
||
|
<div><span>Words remaining: {{ words|length }}</span></div>
|
||
|
{{ render_form(play_form) }}
|
||
|
<h1>Add new word</h1>
|
||
|
{{ render_form(word_form) }}
|
||
|
{% endif %}
|
||
|
{% endblock %}
|