Skip to content
Snippets Groups Projects
Verified Commit 25234da9 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Don't show PDFs embedded

parent bb4aee45
No related branches found
No related tags found
1 merge request!3Setup printer stuff
......@@ -41,8 +41,10 @@
<div class="col s12 m12 l6">
{% include "kort/card/print_form.html" %}
{% if card.pdf_file %}
<div id="card-pdf-{{ card.pk }}" style="height: 500px;"></div>
<script>PDFObject.embed("{{ card.pdf_file.url }}", "#card-pdf-{{ card.pk }}");</script>
<a href="{{ card.pdf_file.url }}" class="btn waves-effect waves-light">
<i class="material-icons left iconify" data-icon="mdi:file-pdf-box"></i>
{% trans "Show card as PDF" %}
</a>
{% else %}
<div class="row center-via-flex">
<a class="btn waves-effect waves-light" href="{% url "generate_card_pdf" card.pk %}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment