mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add signal pretix.control.signals.event_settings_widget
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user