avalon-django/avalon/avalon_game/templates/new_game.html
Daniel Perelman 79fb7d7b97 Implemented observer view for a computer visible to all players. (#15)
* Implemented observer view for a computer visible to all players.
* Updated New Game and Join Game pages/forms so observe button requires name to be blank and joining as a player requires name to be non-blank.
* Highlight more clearly what player is on a device to make the observer more clearly separate.

Closes #4.
2017-05-07 14:51:29 -07:00

20 lines
612 B
HTML

{% extends "base.html" %}
{% block content %}
<h2>New Game</h2>
<form class="new-game-form" action="#" method="post">
{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<div class="button-container">
<input type="submit" class="button button-create" value="Create as player"></input>
<input type="submit" class="button button-observe" name="observe" value="Create as observer"></input>
</div>
<div class="button-container">
<a href="{% url 'index' %}" class="button button-main-menu">Back</a>
</div>
</form>
{% endblock %}