From ec9428fdf76b5d70d0f3bcdff3b85e3a83d5f3d5 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 30 Oct 2017 17:06:23 -0400 Subject: Proper redirect on edit for users. Delete for loads, warning on delete. Invoice view ordered by PK desc --- .../templates/dispatch/invoice/detail.html | 26 +++++------ app/dispatch/templates/dispatch/loads/delete.html | 0 app/dispatch/templates/dispatch/loads/detail.html | 54 ++++++++++++++-------- 3 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 app/dispatch/templates/dispatch/loads/delete.html (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/invoice/detail.html b/app/dispatch/templates/dispatch/invoice/detail.html index 0d83569..033747c 100644 --- a/app/dispatch/templates/dispatch/invoice/detail.html +++ b/app/dispatch/templates/dispatch/invoice/detail.html @@ -4,9 +4,19 @@ {% block content %}
-
+

Invoice for {{object.invoice_date}} by {{object.owner}}

+
+
+
+ + {% csrf_token %} + Delete + Print +
+
+
@@ -22,7 +32,7 @@
{% csrf_token %} - Delete + Delete Print
@@ -39,16 +49,4 @@ - - {%endblock%} diff --git a/app/dispatch/templates/dispatch/loads/delete.html b/app/dispatch/templates/dispatch/loads/delete.html new file mode 100644 index 0000000..e69de29 diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 62a8b30..3b2ba8d 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -5,16 +5,22 @@ {% block content %} {% load dynamic_key %}
-
+

Details for {{object.description}}

+
+
+
+ {% csrf_token %} + Delete + Edit +
+
+
-
- Edit -
@@ -51,36 +57,45 @@
Date
+
+
-
+

Attached Files:

- -
- Upload +
+
+

+
+ Upload +
+
+ - +
+
+
{% for p in paperwork_list %} - - - - + + + + {% endfor %} -
Description:
{{p.description}} - Delete - - Download -
{{p.description}} + Delete + + Download +
+ +
-
@@ -118,7 +133,6 @@
- -- cgit v1.2.3