aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-11-22 17:39:44 -0500
committerMitch Riedstra <Mitch@riedstra.us>2017-11-22 17:39:44 -0500
commitf125be2549e5f4f04c8097b7305be2982ccff063 (patch)
tree0f408132547f9151707555e4718e7981b5b8f2e8 /app/dispatch/templates
parent63e7134298288514473e86614b51daa40b37cdd7 (diff)
downloaddispatch-tracker-f125be2549e5f4f04c8097b7305be2982ccff063.tar.gz
dispatch-tracker-f125be2549e5f4f04c8097b7305be2982ccff063.tar.xz
Change Drivers to vendors in some locations. Remove description field for uploads, changed to filename. Still need to update template.
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/drivers/list.html4
-rw-r--r--app/dispatch/templates/dispatch/generic_load_listing.html2
-rw-r--r--app/dispatch/templates/dispatch/loads/detail.html2
-rw-r--r--app/dispatch/templates/dispatch/loads/list.html2
-rw-r--r--app/dispatch/templates/dispatch/nav.html2
-rw-r--r--app/dispatch/templates/dispatch/paperwork/add.html18
6 files changed, 20 insertions, 10 deletions
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 %}
<div class="row">
<div class="col s12 m6">
- <h1>Drivers</h1>
+ <h1>Vendors and Users</h1>
</div>
</div>
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 @@
<td>{{ load.customer.name }}</td>
{% endif %}
{% endif %}
- {% if "Driver" in load_headers %}
+ {% if "Driver" in load_headers or "Vendor" in load_headers or "Vendor/Driver" in load_headers %}
<td><a href="{% url 'driver_summary' load.user.id %}">{{ load.user.first_name }} {{ load.user.last_name }}</a></td>
{% 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 @@
<tbody>
{% for p in paperwork_list %}
<tr>
- <td>{{p.description}}</td>
+ <td>{{p}}</td>
<td class="right-align">
<form action="{% url 'paperwork_delete' object.id p.id %}" id="attach_delete_{{p.pk}}" method="GET">
<a class="btn red" href="#" onClick="warn_submit('Are you sure?', '#attach_delete_{{p.pk}}')">Delete</a>
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 @@
</div>
{% 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" %}
<div class="row">
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 @@
<li><a href="{% url 'load_list' %}">Loads</a></li>
<li><a href="{% url 'invoice_list' %}">Invoices</a></li>
{% if request.user.is_superuser %}
- <li><a href="{% url 'driver_list' %}">Drivers</a></li>
+ <li><a href="{% url 'driver_list' %}">Vendors</a></li>
<li><a href="{% url 'customer_list' %}">Customers</a></li>
{% else %}
<li><a href="{% url 'driver_summary' request.user.id %}">Summary</a>
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 %}
<div class="row">
<div class="col s12 m6">
- <h1>{{object.name}}</h1>
+ <h1>Upload Files</h1>
</div>
</div>
+<div class="divider" ></div>
+<div style="padding-bottom: 50px;"></div>
+
{% if form.errors %}
{{form.errors}}
{% endif %}
+<div class="row">
+ <div class="col s12">
+ <p>Click the "Choose File" button to upload the appropriate file from your
+ computer. ( Usually a Bill of Lading )</p>
+ </div>
+</div>
+
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.as_p }}
- <div style="padding-top: 10px;"></div>
- <input type="submit" class="btn blue" value="Update" />
+ <div style="padding-top: 30px;"></div>
+ <input type="submit" class="btn blue" value="Upload" />
</form>
{% endblock %}