From a3e719469b9efc0db361a419cd7c2fe04ccaad22 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 19 Oct 2017 19:48:36 -0400 Subject: Re-indented the generic load listing template --- .../templates/dispatch/generic_load_listing.html | 117 ++++++++++----------- 1 file changed, 58 insertions(+), 59 deletions(-) (limited to 'app') diff --git a/app/dispatch/templates/dispatch/generic_load_listing.html b/app/dispatch/templates/dispatch/generic_load_listing.html index ed4399b..068ee0c 100644 --- a/app/dispatch/templates/dispatch/generic_load_listing.html +++ b/app/dispatch/templates/dispatch/generic_load_listing.html @@ -1,66 +1,65 @@ - {% load dynamic_key %} {% for date in loads %} -
-
-
- {{date|date:"l F d"}} - - - - {% for heading in load_headers %} - - {% endfor %} - - - - - - {% for load in loads|keyvalue:date %} - - {% if "Company" in load_headers %} - - {% endif %} - {% if "Driver" in load_headers %} - - {% endif %} + \{\% load custom_tags %} + \{\% listForCommaString "Company,Amount,Load Number,Description" as load_headers %} + --> + + + + + {% for load in loads|keyvalue:date %} + + {% if "Company" in load_headers %} + + {% endif %} + {% if "Driver" in load_headers %} + + {% endif %} - {% if "Amount" in load_headers %} - {% if load.amount == 0 %} - - {% else %} - - {% endif %} - {% endif %} - {% if "Load Number" in load_headers %} - - {% endif %} - {% if "Description" in load_headers %} - - {% endif %} - - - {% empty %} - - {% endfor %} - -
{{heading}}
{{ load.company.name }}{{ load.user.first_name }} {{ load.user.last_name }}
{{ load.company.name }}{{ load.user.first_name }} {{ load.user.last_name }}{{ load.amount }}{{ load.amount }}{{ load.load_number }}{{ load.description }} - - View -
No load.
-
+ {% if "Amount" in load_headers %} + {% if load.amount == 0 %} + {{ load.amount }} + {% else %} + {{ load.amount }} + {% endif %} + {% endif %} + {% if "Load Number" in load_headers %} + {{ load.load_number }} + {% endif %} + {% if "Description" in load_headers %} + {{ load.description }} + {% endif %} + + + View + + + {% empty %} + No load. + {% endfor %} + +
+ {% endfor %} -- cgit v1.2.3