From 8786a7e2d04469184b4975e47165916457c26e1c Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 31 Oct 2017 16:40:52 -0400 Subject: Confirmation for attachment removal. Show that there are no invoices if empty, robots.txt --- app/dispatch/static/robots.txt | 2 ++ app/dispatch/templates/dispatch/invoice/list.html | 13 ++++++++++++- app/dispatch/templates/dispatch/loads/detail.html | 8 +++++--- app/dispatch/templatetags/custom_tags.py | 1 + 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 app/dispatch/static/robots.txt diff --git a/app/dispatch/static/robots.txt b/app/dispatch/static/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/app/dispatch/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/app/dispatch/templates/dispatch/invoice/list.html b/app/dispatch/templates/dispatch/invoice/list.html index c068cc5..d98fb5a 100644 --- a/app/dispatch/templates/dispatch/invoice/list.html +++ b/app/dispatch/templates/dispatch/invoice/list.html @@ -22,7 +22,7 @@ - {% for invoice in object_list %} + {% for invoice in object_list %} {{invoice.user}} {{invoice.owner}} @@ -33,6 +33,17 @@ {{invoice.total}} View + {% empty %} + + No Invoices Found + + + + + + + + {% endfor %} diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 3b2ba8d..5be54a1 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -86,9 +86,11 @@ {{p.description}} - Delete - - Download +
+ Delete + + Download +
{% endfor %} diff --git a/app/dispatch/templatetags/custom_tags.py b/app/dispatch/templatetags/custom_tags.py index e242551..7c5d3f0 100644 --- a/app/dispatch/templatetags/custom_tags.py +++ b/app/dispatch/templatetags/custom_tags.py @@ -5,3 +5,4 @@ register = template.Library() @register.simple_tag def listForCommaString(string): return string.split(',') + -- cgit v1.2.3