diff options
Diffstat (limited to 'app/dispatch/templates')
| -rw-r--r-- | app/dispatch/templates/dispatch/companies/list.html | 11 |
1 files changed, 7 insertions, 4 deletions
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 %} <div class="row"> <div class="col s12 m6"> <h1>Customers</h1> @@ -18,18 +19,20 @@ <thead> <tr> <th>Name</th> - <th>Address</th> - <th>Phone</th> <th>Email</th> + <th>Total Loads</th> + <th>Last Week</th> + <th>This Week</th> </tr> </thead> <tbody> {% for customer in object_list %} <tr> <td>{{ customer.name }}</td> - <td>{{ customer.address }}</td> - <td>{{ customer.phone_number }}</td> <td>{{ customer.email_address }}</td> + <td>{{ customer|customer_loads }}</td> + <td>{{ customer|customer_loads_last_week }}</td> + <td>{{ customer|customer_loads_this_week }}</td> <td class="right-align"> {% if user.is_superuser %} <a href="{% url 'customer_edit' customer.id %}" class="btn orange">Edit</a> |
