Daniel Perelman
79fb7d7b97
* 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.
21 lines
611 B
HTML
21 lines
611 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h2>Join Game</h2>
|
|
|
|
<form class="join-game-form" action="{% url 'enter_code' %}" method="post">
|
|
{% csrf_token %}
|
|
<table>
|
|
{{ form.as_table }}
|
|
</table>
|
|
|
|
<div class="button-container">
|
|
<input type="submit" class="button button-join" value="Join"></input>
|
|
<input type="submit" class="button button-observe" name="observe" value="Observe"></input>
|
|
</div>
|
|
<div class="button-container">
|
|
<a href="{% url 'index' %}" class="button button-main-menu">Back</a>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|