Add signal order_position_buttons

This commit is contained in:
Raphael Michel
2018-12-19 12:29:52 +01:00
parent 041d05eb66
commit 3fe2dfe810
4 changed files with 16 additions and 1 deletions

View File

@@ -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.
"""
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(
providing_args=['request']
)

View File

@@ -260,6 +260,8 @@
<br/>
<span class="fa fa-calendar"></span> {{ line.subevent.name }} &middot; {{ line.subevent.get_date_range_display }}
{% endif %}
{% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
</div>
{% if line.has_questions %}
<dl>
{% if line.item.admission and event.settings.attendee_names_asked %}

View File

@@ -596,4 +596,7 @@ details summary {
-moz-transform: rotate(180deg);
transform: rotate(180deg);
}
.position-buttons {
padding-left: 20px;
}