{% extends 'base.html' %} {% from 'bootstrap/form.html' import render_form %} {% block content %}

Play game

{% if game.password is not none and not session['logged_in'][game.uuid] %} {{ render_form(game_login) }} {% else %}

To share this game, just share the url to this page

{% if word is not none %}

Your word is: {{ word.text }}

{% endif %}

Words remaining: {{ words|length }}

{{ render_form(play_form, button_map={"draw_word": "primary"}) }}

Put words back

Make all drawn words pickable again

{{ render_form(reset_form, button_map={"reset_game": "danger"}) }}

Add new word

{{ render_form(word_form) }} {% endif %} {% endblock %}