mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add signals order_info_top and position_info_top
This commit is contained in:
@@ -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"]
|
||||
)
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user