forked from CGM_Public/pretix_original
Add signals order_info_top and position_info_top
This commit is contained in:
@@ -33,11 +33,11 @@ Frontend
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
.. automodule:: pretix.presale.signals
|
.. automodule:: pretix.presale.signals
|
||||||
:members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, front_page_bottom_widget, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, item_description
|
:members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, front_page_bottom_widget, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, position_info_top, item_description
|
||||||
|
|
||||||
|
|
||||||
.. automodule:: pretix.presale.signals
|
.. automodule:: pretix.presale.signals
|
||||||
:members: order_info, order_meta_from_request
|
:members: order_info, order_info_top, order_meta_from_request
|
||||||
|
|
||||||
Request flow
|
Request flow
|
||||||
""""""""""""
|
""""""""""""
|
||||||
|
|||||||
@@ -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.
|
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(
|
process_request = EventPluginSignal(
|
||||||
providing_args=["request"]
|
providing_args=["request"]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -92,6 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% eventsignal event "pretix.presale.signals.order_info_top" order=order %}
|
||||||
{% if order.status == "p" or order.status == "c" %}
|
{% if order.status == "p" or order.status == "c" %}
|
||||||
{% if refunds %}
|
{% if refunds %}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
{% include "pretixpresale/event/fragment_order_status.html" with order=order class="pull-right flip" %}
|
{% include "pretixpresale/event/fragment_order_status.html" with order=order class="pull-right flip" %}
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</h2>
|
</h2>
|
||||||
|
{% eventsignal event "pretix.presale.signals.position_info_top" order=order position=position %}
|
||||||
{% include "pretixpresale/event/fragment_downloads.html" %}
|
{% include "pretixpresale/event/fragment_downloads.html" %}
|
||||||
<div class="panel panel-primary cart">
|
<div class="panel panel-primary cart">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
|||||||
Reference in New Issue
Block a user