{% extends "kegadmin/base.html" %} {% load kegweblib %} {% load bootstrap %} {% block pagetitle %}Kegbot Admin: Taps{% endblock %} {% block kegadmin-main %} {% for tapinfo in all_taps %} {% with tapinfo.tap as tap %} {% with tap.current_keg as keg %}

{{ tap.name }}

{% if keg and keg.is_active %}
{% comment %}

{% endcomment %}

{% csrf_token %} {{ tapinfo.end_form|bootstrap }}

{{ keg.type}}

{% if keg.is_empty %} Empty, {% else %} {% volume keg.remaining_volume %} remaining ({{ keg.percent_full|floatformat:1 }}% full), {% endif %} tapped {% timeago keg.startdate %}
{% else %}

Empty tap, activate a new keg. Time for a beer run?

{% csrf_token %} {{ tapinfo.keg_form|bootstrap }}

{% endif %}
{% csrf_token %} {{ tapinfo.edit_form|bootstrap }}
{% with keg.drinks.latest as drink %} {% if drink %} {% endif %} {% endwith %}

Last Pour

Drink {{ drink.seqn }} by {{ drink.user }}
{% endwith %} {% endwith %} {% endfor %}

Add a New Tap

{% csrf_token %} {{ create_tap_form|bootstrap }}
{% endblock %}