hide PDF link when PDF download is not available

This commit is contained in:
dandds
2018-09-28 14:21:12 -04:00
parent 7e84382a66
commit 6245ab3f5e
2 changed files with 43 additions and 3 deletions

View File

@@ -141,9 +141,13 @@
</h2>
<div>
<a href="{{ url_for("requests.task_order_pdf_download", request_id=request_id)}}" download>
Download the Task Order PDF
</a>
{% if jedi_request.task_order.pdf %}
<a href="{{ url_for("requests.task_order_pdf_download", request_id=request_id)}}" download>
Download the Task Order PDF
</a>
{% else %}
<p>No Task Order PDF attached.</p>
{% endif %}
</div>
<dl>