diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-01-09 01:26:02 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-01-09 01:26:02 -0500 |
| commit | ec67cee42fd0f8ac989b5b93949938059b661f0c (patch) | |
| tree | 9b7a4c5ae126ac9ce4cd277f044d929a46271d15 /app/dispatch/templates | |
| parent | 8bdb452b40e93ad29cca0b98b3d388bfbe5093f4 (diff) | |
| download | dispatch-tracker-ec67cee42fd0f8ac989b5b93949938059b661f0c.tar.gz dispatch-tracker-ec67cee42fd0f8ac989b5b93949938059b661f0c.tar.xz | |
Add the ability to download all of the paperwork from a customer view
Diffstat (limited to 'app/dispatch/templates')
| -rw-r--r-- | app/dispatch/templates/dispatch/companies/detail.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/dispatch/templates/dispatch/companies/detail.html b/app/dispatch/templates/dispatch/companies/detail.html index 5dd2414..ffd3c09 100644 --- a/app/dispatch/templates/dispatch/companies/detail.html +++ b/app/dispatch/templates/dispatch/companies/detail.html @@ -9,11 +9,14 @@ <h1>Company: {{ object.name }}</h1> <h2>Loads for {{week_dates.start_date|date:"l, F, d"}} to {{week_dates.end_date|date:"l, F, d"}}</h2> </div> + {% load dynamic_key %} + {% if object|customer_has_load_for_datetime:week_dates.start_date %} <div class="col s12 m3"> <div class="right-align"> <a class="btn blue" href="{% url 'customer_download' object.id %}?date={{week_dates.start_date|date:"m/d/Y"}}">Download Paperwork</a> </div> </div> + {% endif %} </div> <div class="row"> |
