mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add signal order_position_buttons
This commit is contained in:
@@ -49,7 +49,7 @@ Backend
|
|||||||
|
|
||||||
.. automodule:: pretix.control.signals
|
.. automodule:: pretix.control.signals
|
||||||
:members: nav_event, html_head, html_page_start, quota_detail_html, nav_topbar, nav_global, nav_organizer, nav_event_settings,
|
:members: nav_event, html_head, html_page_start, quota_detail_html, nav_topbar, nav_global, nav_organizer, nav_event_settings,
|
||||||
order_info, event_settings_widget, oauth_application_registered
|
order_info, event_settings_widget, oauth_application_registered, order_position_buttons
|
||||||
|
|
||||||
|
|
||||||
.. automodule:: pretix.base.signals
|
.. automodule:: pretix.base.signals
|
||||||
|
|||||||
@@ -201,6 +201,16 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
|||||||
Additionally, the argument ``order`` and ``request`` are available.
|
Additionally, the argument ``order`` and ``request`` are available.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
order_position_buttons = EventPluginSignal(
|
||||||
|
providing_args=["order", "position", "request"]
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
This signal is sent out to display additional buttons for a single position of an order.
|
||||||
|
|
||||||
|
As with all plugin signals, the ``sender`` keyword argument will contain the event.
|
||||||
|
Additionally, the argument ``order`` and ``request`` are available.
|
||||||
|
"""
|
||||||
|
|
||||||
nav_event_settings = EventPluginSignal(
|
nav_event_settings = EventPluginSignal(
|
||||||
providing_args=['request']
|
providing_args=['request']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -260,6 +260,8 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<span class="fa fa-calendar"></span> {{ line.subevent.name }} · {{ line.subevent.get_date_range_display }}
|
<span class="fa fa-calendar"></span> {{ line.subevent.name }} · {{ line.subevent.get_date_range_display }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
|
||||||
|
</div>
|
||||||
{% if line.has_questions %}
|
{% if line.has_questions %}
|
||||||
<dl>
|
<dl>
|
||||||
{% if line.item.admission and event.settings.attendee_names_asked %}
|
{% if line.item.admission and event.settings.attendee_names_asked %}
|
||||||
|
|||||||
@@ -596,4 +596,7 @@ details summary {
|
|||||||
-moz-transform: rotate(180deg);
|
-moz-transform: rotate(180deg);
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
}
|
}
|
||||||
|
.position-buttons {
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user