diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-01-09 17:37:08 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-01-09 17:37:08 -0500 |
| commit | af3128b01e0b537ba21dd9a2bc819d6404a8fc9f (patch) | |
| tree | 55b29263a0d3686dc06386bc248fb9426607f315 /app/dispatch/templates | |
| parent | ec67cee42fd0f8ac989b5b93949938059b661f0c (diff) | |
| download | dispatch-tracker-af3128b01e0b537ba21dd9a2bc819d6404a8fc9f.tar.gz dispatch-tracker-af3128b01e0b537ba21dd9a2bc819d6404a8fc9f.tar.xz | |
Added filters for customer in templates. Show number of loads in customer list view
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> |
