aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/dispatch/templates/dispatch/generic_load_listing.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/app/dispatch/templates/dispatch/generic_load_listing.html b/app/dispatch/templates/dispatch/generic_load_listing.html
index 60ed1d2..c7be455 100644
--- a/app/dispatch/templates/dispatch/generic_load_listing.html
+++ b/app/dispatch/templates/dispatch/generic_load_listing.html
@@ -1,5 +1,6 @@
{% load dynamic_key %}
{% for date in loads %}
+
<div class="row">
<div class="col s12 card">
<div class="card-content">
@@ -37,13 +38,21 @@
{% endif %}
{% if "Customer" in load_headers %}
{% if request.user.is_superuser %}
- <td><a href="{% url 'customer_detail' load.customer.id %}">{{ load.customer.name }}</a></td>
+ {% if request.GET.date %}
+ <td><a href="{% url 'customer_detail' load.customer.id %}?date={{request.GET.date}}">{{ load.customer.name }}</a></td>
+ {% else %}
+ <td><a href="{% url 'customer_detail' load.customer.id %}">{{ load.customer.name }}</a></td>
+ {% endif %}
{% else %}
<td>{{ load.customer.name }}</td>
{% endif %}
{% endif %}
{% if "Driver" in load_headers or "Vendor" in load_headers or "Vendor/Driver" in load_headers %}
- <td><a href="{% url 'driver_summary' load.user.id %}">{{ load.user.first_name }} {{ load.user.last_name }}</a></td>
+ {% if request.GET.date %}
+ <td><a href="{% url 'driver_summary' load.user.id %}?date={{request.GET.date}}">{{ load.user.first_name }} {{ load.user.last_name }}</a></td>
+ {% else %}
+ <td><a href="{% url 'driver_summary' load.user.id %}">{{ load.user.first_name }} {{ load.user.last_name }}</a></td>
+ {% endif %}
{% endif %}
{% if "Amount" in load_headers %}