From af3128b01e0b537ba21dd9a2bc819d6404a8fc9f Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 9 Jan 2018 17:37:08 -0500 Subject: Added filters for customer in templates. Show number of loads in customer list view --- app/dispatch/templates/dispatch/companies/list.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/companies/list.html b/app/dispatch/templates/dispatch/companies/list.html index 97e54f7..2dc4f7c 100644 --- a/app/dispatch/templates/dispatch/companies/list.html +++ b/app/dispatch/templates/dispatch/companies/list.html @@ -3,6 +3,7 @@ {% block title %}Customers{% endblock %} {% block content %} +{% load dynamic_key %}

Customers

@@ -18,18 +19,20 @@ Name - Address - Phone Email + Total Loads + Last Week + This Week {% for customer in object_list %} {{ customer.name }} - {{ customer.address }} - {{ customer.phone_number }} {{ customer.email_address }} + {{ customer|customer_loads }} + {{ customer|customer_loads_last_week }} + {{ customer|customer_loads_this_week }} {% if user.is_superuser %} Edit -- cgit v1.2.3