Add signals order_info_top and position_info_top

This commit is contained in:
Raphael Michel
2020-03-24 14:21:42 +01:00
parent a37cd380c8
commit 0df4a6e7ed
4 changed files with 22 additions and 2 deletions

View File

@@ -179,6 +179,24 @@ This signal is sent out to display additional information on the position detail
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""
order_info_top = EventPluginSignal(
providing_args=["order"]
)
"""
This signal is sent out to display additional information on top of the order detail page
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""
position_info_top = EventPluginSignal(
providing_args=["order", "position"]
)
"""
This signal is sent out to display additional information on top of the position detail page
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""
process_request = EventPluginSignal(
providing_args=["request"]
)

View File

@@ -92,6 +92,7 @@
</div>
</div>
{% endif %}
{% eventsignal event "pretix.presale.signals.order_info_top" order=order %}
{% if order.status == "p" or order.status == "c" %}
{% if refunds %}
<div class="alert alert-info">

View File

@@ -21,6 +21,7 @@
{% include "pretixpresale/event/fragment_order_status.html" with order=order class="pull-right flip" %}
<div class="clearfix"></div>
</h2>
{% eventsignal event "pretix.presale.signals.position_info_top" order=order position=position %}
{% include "pretixpresale/event/fragment_downloads.html" %}
<div class="panel panel-primary cart">
<div class="panel-heading">