mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Add request argument to order_info/position_info signals
This commit is contained in:
@@ -162,7 +162,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
||||
"""
|
||||
|
||||
order_info = EventPluginSignal(
|
||||
providing_args=["order"]
|
||||
providing_args=["order", "request"]
|
||||
)
|
||||
"""
|
||||
This signal is sent out to display additional information on the order detail page
|
||||
@@ -171,7 +171,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
||||
"""
|
||||
|
||||
position_info = EventPluginSignal(
|
||||
providing_args=["order", "position"]
|
||||
providing_args=["order", "position", "request"]
|
||||
)
|
||||
"""
|
||||
This signal is sent out to display additional information on the position detail page
|
||||
@@ -180,7 +180,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
||||
"""
|
||||
|
||||
order_info_top = EventPluginSignal(
|
||||
providing_args=["order"]
|
||||
providing_args=["order", "request"]
|
||||
)
|
||||
"""
|
||||
This signal is sent out to display additional information on top of the order detail page
|
||||
@@ -189,7 +189,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
||||
"""
|
||||
|
||||
position_info_top = EventPluginSignal(
|
||||
providing_args=["order", "position"]
|
||||
providing_args=["order", "position", "request"]
|
||||
)
|
||||
"""
|
||||
This signal is sent out to display additional information on top of the position detail page
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% eventsignal event "pretix.presale.signals.order_info_top" order=order %}
|
||||
{% eventsignal event "pretix.presale.signals.order_info_top" order=order request=request %}
|
||||
{% if order.status == "p" or order.status == "c" %}
|
||||
{% if refunds %}
|
||||
<div class="alert alert-info">
|
||||
@@ -151,7 +151,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% eventsignal event "pretix.presale.signals.order_info" order=order %}
|
||||
{% eventsignal event "pretix.presale.signals.order_info" order=order request=request %}
|
||||
<div class="row">
|
||||
{% if invoices %}
|
||||
<div class="col-xs-12 {% if invoice_address_asked or request.event.settings.invoice_name_required %}col-md-6{% endif %}">
|
||||
|
||||
@@ -21,7 +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 %}
|
||||
{% eventsignal event "pretix.presale.signals.position_info_top" order=order position=position request=request %}
|
||||
{% include "pretixpresale/event/fragment_downloads.html" %}
|
||||
<div class="panel panel-primary cart">
|
||||
<div class="panel-heading">
|
||||
@@ -48,5 +48,5 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% eventsignal event "pretix.presale.signals.position_info" order=order position=position %}
|
||||
{% eventsignal event "pretix.presale.signals.position_info" order=order position=position request=request %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user