22 lines
481 B
HTML
22 lines
481 B
HTML
{% extends 'inventory/base.html' %}
|
|
|
|
{% block content %}
|
|
<h1>Consume</h1>
|
|
{% if pis %}
|
|
{% regroup pis by expiry_date as pis_by_date %}
|
|
{% for date in pis_by_date %}
|
|
<div class="content">
|
|
<h2>{{ date.grouper|date:"d F Y" }}</h2>
|
|
<ul>
|
|
{% for pi in date.list %}
|
|
<li><a href="{% url 'im:consume' pi.id %}">{{ pi|title}}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>No Pantry Items are available.</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|