From f125be2549e5f4f04c8097b7305be2982ccff063 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 22 Nov 2017 17:39:44 -0500 Subject: Change Drivers to vendors in some locations. Remove description field for uploads, changed to filename. Still need to update template. --- app/dispatch/templates/dispatch/drivers/list.html | 4 ++-- .../templates/dispatch/generic_load_listing.html | 2 +- app/dispatch/templates/dispatch/loads/detail.html | 2 +- app/dispatch/templates/dispatch/loads/list.html | 2 +- app/dispatch/templates/dispatch/nav.html | 2 +- app/dispatch/templates/dispatch/paperwork/add.html | 18 ++++++++++++++---- 6 files changed, 20 insertions(+), 10 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/drivers/list.html b/app/dispatch/templates/dispatch/drivers/list.html index f1e5be6..a5db74a 100644 --- a/app/dispatch/templates/dispatch/drivers/list.html +++ b/app/dispatch/templates/dispatch/drivers/list.html @@ -1,11 +1,11 @@ {% extends 'dispatch/base.html' %} -{% block title %}Drivers{% endblock %} +{% block title %}Vendors and Users{% endblock %} {% block content %}
-

Drivers

+

Vendors and Users

diff --git a/app/dispatch/templates/dispatch/generic_load_listing.html b/app/dispatch/templates/dispatch/generic_load_listing.html index 3a78335..60ed1d2 100644 --- a/app/dispatch/templates/dispatch/generic_load_listing.html +++ b/app/dispatch/templates/dispatch/generic_load_listing.html @@ -42,7 +42,7 @@ {{ load.customer.name }} {% endif %} {% endif %} - {% if "Driver" in load_headers %} + {% if "Driver" in load_headers or "Vendor" in load_headers or "Vendor/Driver" in load_headers %} {{ load.user.first_name }} {{ load.user.last_name }} {% endif %} diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 288fdd8..6cdbae0 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -88,7 +88,7 @@ {% for p in paperwork_list %} - {{p.description}} + {{p}}
Delete diff --git a/app/dispatch/templates/dispatch/loads/list.html b/app/dispatch/templates/dispatch/loads/list.html index 615c4e1..e615432 100644 --- a/app/dispatch/templates/dispatch/loads/list.html +++ b/app/dispatch/templates/dispatch/loads/list.html @@ -24,7 +24,7 @@ {% load custom_tags %} -{% listForCommaString "Customer,Driver,Amount,Description,Attachments" as load_headers %} +{% listForCommaString "Customer,Vendor,Amount,Description,Attachments" as load_headers %} {% include "dispatch/generic_load_listing.html" %}
diff --git a/app/dispatch/templates/dispatch/nav.html b/app/dispatch/templates/dispatch/nav.html index ef65d24..bc34d41 100644 --- a/app/dispatch/templates/dispatch/nav.html +++ b/app/dispatch/templates/dispatch/nav.html @@ -6,7 +6,7 @@
  • Loads
  • Invoices
  • {% if request.user.is_superuser %} -
  • Drivers
  • +
  • Vendors
  • Customers
  • {% else %}
  • Summary diff --git a/app/dispatch/templates/dispatch/paperwork/add.html b/app/dispatch/templates/dispatch/paperwork/add.html index f828f9c..d5ec623 100644 --- a/app/dispatch/templates/dispatch/paperwork/add.html +++ b/app/dispatch/templates/dispatch/paperwork/add.html @@ -1,24 +1,34 @@ {% extends 'dispatch/base.html' %} -{% block title %}Edit - {{ object.description }}{% endblock %} +{% block title %}Upload File{% endblock %} {% block content %}
    -

    {{object.name}}

    +

    Upload Files

    +
    +
    + {% if form.errors %} {{form.errors}} {% endif %} +
    +
    +

    Click the "Choose File" button to upload the appropriate file from your + computer. ( Usually a Bill of Lading )

    +
    +
    + {% csrf_token %} {{ form.as_p }} -
    - +
    +
  • {% endblock %} -- cgit v1.2.3