Add signal pretix.control.signals.event_settings_widget

This commit is contained in:
Raphael Michel
2017-11-01 19:53:17 +01:00
parent af3e8d5515
commit 09a9dfe591
4 changed files with 15 additions and 2 deletions

View File

@@ -210,3 +210,14 @@ and your tempalte inherits from ``pretixcontrol/event/settings_base.html``.
As with all plugin signals, the ``sender`` keyword argument will contain the event.
A second keyword argument ``request`` will contain the request object.
"""
event_settings_widget = EventPluginSignal(
providing_args=['request']
)
"""
This signal is sent out to include template snippets on the settings page of an event
that allows generating a pretix Widget code.
As with all plugin signals, the ``sender`` keyword argument will contain the event.
A second keyword argument ``request`` will contain the request object.
"""

View File

@@ -3,6 +3,7 @@
{% load staticfiles %}
{% load bootstrap3 %}
{% load eventurl %}
{% load eventsignal %}
{% block inside %}
<legend>{% trans "Widget" %}</legend>
<p>
@@ -66,4 +67,5 @@
</div>
</form>
{% endif %}
{% eventsignal request.event "pretix.control.signals.event_settings_widget" request=request %}
{% endblock %}