From 807c082bc71ed79651533551111b0e3507ae410b Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 27 Nov 2017 11:16:39 -0500 Subject: Keep the current date range when switching to Driver/Customer views --- app/dispatch/templates/dispatch/generic_load_listing.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'app/dispatch/templates') 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 %} +
@@ -37,13 +38,21 @@ {% endif %} {% if "Customer" in load_headers %} {% if request.user.is_superuser %} - {{ load.customer.name }} + {% if request.GET.date %} + {{ load.customer.name }} + {% else %} + {{ load.customer.name }} + {% endif %} {% else %} {{ load.customer.name }} {% endif %} {% endif %} {% if "Driver" in load_headers or "Vendor" in load_headers or "Vendor/Driver" in load_headers %} - {{ load.user.first_name }} {{ load.user.last_name }} + {% if request.GET.date %} + {{ load.user.first_name }} {{ load.user.last_name }} + {% else %} + {{ load.user.first_name }} {{ load.user.last_name }} + {% endif %} {% endif %} {% if "Amount" in load_headers %} -- cgit v1.2.3