fishbowl/fishbowl/templates/game.html

23 lines
774 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 %}
<p><em>To share this game, just share the url to this page</em></p>
{% if word is not none %}
<p>Your word is: {{ word.text }}</p>
{% endif %}
<p>Words remaining: {{ words|length }}</p>
{{ render_form(play_form, button_map={"draw_word": "primary"}) }}
<p></p>
<h4>Put words back</h4>
<p>Make all drawn words pickable again</p>
{{ render_form(reset_form, button_map={"reset_game": "danger"}) }}
<h1>Add new word</h1>
{{ render_form(word_form) }}
{% endif %}
{% endblock %}