Add link to ticket page to order page in backend

This commit is contained in:
Raphael Michel
2019-09-10 11:34:52 +02:00
parent 8b5d49d82f
commit 3a4fc69db1

View File

@@ -294,8 +294,15 @@
{% endif %}
<button type="submit" data-toggle="qrcode" data-qrcode="{{ line.secret }}"
class="btn btn-xs btn-default">
<span class="fa fa-qrcode"></span> {% trans "Show ticket code" %}
<span class="fa fa-qrcode"></span> {% trans "Ticket code" %}
</button>
{% if not line.addon_to %}
<a href="{% eventurl request.event "presale:event.order.position" order=order.code secret=line.web_secret position=line.positionid %}"
class="btn btn-xs btn-default" target="_blank">
<span class="fa fa-eye"></span>
{% trans "Ticket page" %}
</a>
{% endif %}
{% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
</div>
{% endif %}