Added screenshot for home page; added inspector.

This commit is contained in:
Simon Brooke 2014-07-24 20:04:03 +01:00
parent 98e43dbe8f
commit 5f1ab0212a
3 changed files with 23 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -0,0 +1,23 @@
{% extends "templates/base.html" %}
{% block content %}
<div class="content">
{{content|safe}}
</div>
<form action="inspect" method="post">
<input type="hidden" name="x" value="{{x}}"/>
<input type="hidden" name="y" value="{{y}}"/>
<p class="widget">
<label for="state">New state</label>
<select name="state" id="state">
<option value="{{cell.state}}">{{cell.state}}</option>
{% for state in states %}
<option value="{{state}}">{{state}}</option>
{% endfor %}
</select>
</p>
<p class="widget">
<label for="submit">To change the state of this cell</label>
<input name="submit" id="submit" type="submit" value="Save state!"/>
</p>
</form>
{% endblock %}