28 lines
674 B
HTML
28 lines
674 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>{{ heading }}</h1>
|
|
|
|
<h2>
|
|
Name: {{drink.name}}<br />
|
|
Code: {{drink.code}}<br />
|
|
Prize: {{drink.prize}}<br />
|
|
</h2>
|
|
|
|
<h2>
|
|
Have one of these for {{drink.prize}} credits:
|
|
</h2>
|
|
|
|
{% for drinker in drinkers %}
|
|
<h2>
|
|
<form action="/mate/checkout" method="POST">
|
|
{% csrf_token %}
|
|
<input type="text" name="count" value="1" size="3" />
|
|
<input type="submit" name="submit" value="{{ drinker.name }}" />
|
|
<input type="hidden" name="drinker" value="{{ drinker.code }}"/>
|
|
<input type="hidden" name="drink" value="{{ drink.code }}" />
|
|
</form>
|
|
</h2>
|
|
{% endfor %}
|
|
{% endblock %}
|