From 5b2f6041e739be4810709ca49d0538279d3f549d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 18 Oct 2017 15:55:23 -0400 Subject: Added a delivered to field. File uploads work. Load detail view works properly now. File upload names are properly set. You can now delete uploaded files --- app/dispatch/templates/dispatch/loads/detail.html | 83 +++++++++++++++++++++- app/dispatch/templates/dispatch/paperwork/add.html | 3 +- 2 files changed, 83 insertions(+), 3 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 3460ccc..bf6d809 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -5,7 +5,88 @@ {% block content %}
-

Load details {{object.load_number}}

+

Details for {{object.load_number}}

+ +
+
+
+ Edit +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Date{{object.date}}
User{{object.user}}
Company{{object.company}}
Load Number{{object.load_number}}
Description{{object.description}}
Delivered To{{object.delivered_to}}
Amount{{object.amount}}
+ +
+ + +
+
+

Attached Files:

+ +
+ Upload +
+ + + + + + + + {% for p in paperwork_list %} + + + + + {% endfor %} + +
Description:
{{p.description}} + Delete + Download +
+ +
+
+ + +
+ {% endblock %} diff --git a/app/dispatch/templates/dispatch/paperwork/add.html b/app/dispatch/templates/dispatch/paperwork/add.html index 107c905..840a387 100644 --- a/app/dispatch/templates/dispatch/paperwork/add.html +++ b/app/dispatch/templates/dispatch/paperwork/add.html @@ -9,8 +9,6 @@ -fuck - {% if form.errors %} {{form.errors}} @@ -19,6 +17,7 @@ fuck
{% csrf_token %} {{ form.as_p }} +
-- cgit v1.2.3