aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-27 15:02:13 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-27 15:02:13 -0400
commitd16ac1fa8e8b7019156ae11267a23d957aed6495 (patch)
tree6f67c207fa2b1ac599c9da0124c885710af15874
parent2e7014a30322011dfe7bdd8a44c5eacc4c308dd2 (diff)
downloaddispatch-tracker-1.1.tar.gz
dispatch-tracker-1.1.tar.xz
Fixed previous/next button issues with the customers page1.1
-rw-r--r--app/dispatch/templates/dispatch/companies/detail.html6
-rw-r--r--app/dispatch/templates/dispatch/companies/list.html2
2 files changed, 5 insertions, 3 deletions
diff --git a/app/dispatch/templates/dispatch/companies/detail.html b/app/dispatch/templates/dispatch/companies/detail.html
index 7ce73f3..2eaa81f 100644
--- a/app/dispatch/templates/dispatch/companies/detail.html
+++ b/app/dispatch/templates/dispatch/companies/detail.html
@@ -39,12 +39,14 @@
{% listForCommaString "Vendor,Amount,Description" as load_headers %}
{% include "dispatch/generic_load_listing.html" %}
<br />
+
+
<div class="row">
<div class="col s6 left-align">
- <a href="{% url 'customer_detail' object.id %}?date={{previous_week}}" class="btn btn-block-sm blue"><i class="material-icons left">arrow_back</i> Prev</a>
+ <a href="{% url 'customer_detail' object.id %}?date={{week_dates.previous_week|date:"m/d/Y"}}" class="btn btn-block-sm blue"><i class="material-icons left">arrow_back</i> Prev</a>
</div>
<div class="col s6 right-align">
- <a href="{% url 'customer_detail' object.id %}?date={{next_week}}" class="btn btn-block-sm blue"><i class="material-icons right">arrow_forward</i> Next</a>
+ <a href="{% url 'customer_detail' object.id %}?date={{week_dates.next_week|date:"m/d/Y"}}" class="btn btn-block-sm blue"><i class="material-icons right">arrow_forward</i> Next</a>
</div>
</div>
diff --git a/app/dispatch/templates/dispatch/companies/list.html b/app/dispatch/templates/dispatch/companies/list.html
index c3be2f5..91aa357 100644
--- a/app/dispatch/templates/dispatch/companies/list.html
+++ b/app/dispatch/templates/dispatch/companies/list.html
@@ -30,7 +30,7 @@
</tr>
</thead>
<tbody>
- {% for customer in object_list %}
+ {% for customer in object_list %}
<tr>
<td class="hide-on-med-and-down">{{ customer.name }}</td>
<td class="hide-on-med-and-down"><a href="mailto:{{ customer.email_address }}">{{ customer.email_address }}</a></td>