Add a plugin API for ticket outputs

This commit is contained in:
Raphael Michel
2015-04-19 18:11:15 +02:00
parent d17bf6a874
commit 8b88878b8d
15 changed files with 423 additions and 74 deletions

View File

@@ -37,10 +37,12 @@
entering the event.
{% endblocktrans %}
</p>
<a href="{% url "presale:event.order.download" organizer=request.event.organizer.slug event=request.event.slug order=order.code %}"
class="btn btn-primary">
<span class="fa fa-print"></span> {% trans "Download PDF" %}
</a>
{% for b in download_buttons %}
<a href="{% url "presale:event.order.download" organizer=request.event.organizer.slug event=request.event.slug order=order.code output=b.identifier %}"
class="btn btn-primary">
<span class="fa {{ b.icon }}"></span> {{ b.text }}
</a>
{% endfor %}
{% else %}
{% blocktrans trimmed with date=event.settings.ticket_download_date|date %}
You will be able to download your tickets here on {{ date }}.