fishbowl/fishbowl/templates/game.html

23 lines
774 B
HTML
Raw Normal View History

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