copanier/copanier/templates/home.html
Yohan Boniface 6db17fa56e Allow to archive deliveries
- Delivery.id is not persisted anymore: the file name and relaltive
  directory *is* the id, and we don't want to denormalize this info
- Delivery.load will filter out non fields keys from the storage: this
  allows more resilient upgrade of the data model, and is usefull when
  dealing with multiple branches with different data models
- Delivery.archive/unarchive will move the delivery storage from
  root to archive/
- Delivery.all now accepts "is_archived" to retrieve archived instead
  of active deliveries
- import products is now moved to a modal
- archived deliveries are now listed in a separate page
2019-04-24 17:51:56 +02:00

12 lines
396 B
HTML

{% extends "base.html" %}
{% block body %}
<h2>Livraisons à venir</h2>
{% with deliveries=incoming %}
{% include "includes/delivery_list.html" %}
{% endwith %}
<h2>Livraisons passées</h2>
{% with deliveries=former %}
{% include "includes/delivery_list.html" %}
{% endwith %}
<a href="/archives">Voir les livraisons archivées</a>
{% endblock body %}