From a7c4944e54e9da5289f9749f4eba1ed177b17355 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 9 Oct 2017 23:16:05 -0400 Subject: Fix up the shitty amount of date related variables being set in the template context. User friendly dates on load view --- app/dispatch/templates/dispatch/drivers/detail.html | 10 +++++----- app/dispatch/templates/dispatch/loads/list.html | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index bc674b9..80779c4 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -6,16 +6,16 @@

Driver Summary for {{ object.first_name }} {{ object.last_name }}

-

Loads for {{start_date|date:"l, F, d"}} to {{end_date|date:"l, F, d"}}

+

Loads for {{week_dates.start_date|date:"l, F, d"}} to {{week_dates.end_date|date:"l, F, d"}}

@@ -54,10 +54,10 @@
diff --git a/app/dispatch/templates/dispatch/loads/list.html b/app/dispatch/templates/dispatch/loads/list.html index 6141e75..b6f7008 100644 --- a/app/dispatch/templates/dispatch/loads/list.html +++ b/app/dispatch/templates/dispatch/loads/list.html @@ -6,19 +6,19 @@ {% block content %}
-
-

Loads for {{start_date}} - {{end_date}}

+
+

Loads for {{week_dates.start_date|date:"l, F, d"}} to {{week_dates.end_date|date:"l, F, d"}}

- {% load dynamic_key %} @@ -26,7 +26,7 @@
- {{date}} + {{date|date:"l F d"}} @@ -59,10 +59,10 @@ {% endfor %} {% endblock %} -- cgit v1.2.3