diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-27 15:02:13 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-27 15:02:13 -0400 |
| commit | d16ac1fa8e8b7019156ae11267a23d957aed6495 (patch) | |
| tree | 6f67c207fa2b1ac599c9da0124c885710af15874 /app | |
| parent | 2e7014a30322011dfe7bdd8a44c5eacc4c308dd2 (diff) | |
| download | dispatch-tracker-d16ac1fa8e8b7019156ae11267a23d957aed6495.tar.gz dispatch-tracker-d16ac1fa8e8b7019156ae11267a23d957aed6495.tar.xz | |
Fixed previous/next button issues with the customers page1.1
Diffstat (limited to 'app')
| -rw-r--r-- | app/dispatch/templates/dispatch/companies/detail.html | 6 | ||||
| -rw-r--r-- | app/dispatch/templates/dispatch/companies/list.html | 2 |
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> |
