From c62d92585b72725168d2c6b6b6f6027e2fe103ce Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 10 Oct 2017 23:54:59 -0400 Subject: Updated Load listing page with increased information and red amount text if zero --- .../templates/dispatch/drivers/detail.html | 4 +- app/dispatch/templates/dispatch/loads/list.html | 75 ++++++++++++---------- 2 files changed, 44 insertions(+), 35 deletions(-) (limited to 'app/dispatch') diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 2c28064..48e6e58 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -22,8 +22,8 @@ {{stats.count}} - {{stats.sum}} - {{stats.average|stringformat:".3f"}} + ${{stats.sum}} + ${{stats.average|stringformat:".3f"}} diff --git a/app/dispatch/templates/dispatch/loads/list.html b/app/dispatch/templates/dispatch/loads/list.html index b6f7008..fec2371 100644 --- a/app/dispatch/templates/dispatch/loads/list.html +++ b/app/dispatch/templates/dispatch/loads/list.html @@ -21,42 +21,50 @@ arrow_forward Next + {% load dynamic_key %} {% for date in loads %} -
-
-
- {{date|date:"l F d"}} - - - - - - - - - - - {% for load in loads|keyvalue:date %} - - - - - - - - {% empty %} - - {% endfor %} - -
DriverCompanyLoad NumberAmount
{{ load.user.first_name }} {{ load.user.last_name }}{{ load.company.name }}{{ load.load_number }}{{ load.amount }} - Edit - View -
No load.
-
-
-
+
+
+
+ {{date|date:"l F d"}} + + + + + + + + + + + + {% for load in loads|keyvalue:date %} + + + + {% if load.amount == 0 %} + + {% else %} + + {% endif %} + + + + + {% empty %} + + {% endfor %} + +
CompanyDriverAmountLoad NumberDescription
{{ load.company.name }}{{ load.user.first_name }} {{ load.user.last_name }}{{ load.amount }}{{ load.amount }}{{ load.load_number }}{{ load.description }} + Edit + View +
No load.
+
+
+
{% endfor %} +
+ {% endblock %} -- cgit v1.2.3