Add signal to display html in quota detail view (#264)

This commit is contained in:
Tobias Kunze
2016-10-08 15:53:01 +02:00
committed by Raphael Michel
parent e9c3065e03
commit b6dc2661ae
3 changed files with 13 additions and 1 deletions

View File

@@ -94,3 +94,13 @@ You will receive the default form class (or the class set by a previous plugin)
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""
quota_detail_html = EventPluginSignal(
providing_args=['quota']
)
"""
This signal allows you to append HTML to a Quota's detail view. You receive the
quota as argument in the ``quota`` keyword argument.
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""

View File

@@ -1,6 +1,7 @@
{% extends "pretixcontrol/items/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load eventsignal %}
{% block title %}{% blocktrans with name=quota.name %}Quota: {{ name }}{% endblocktrans %}{% endblock %}
{% block inside %}
<h1>
@@ -54,4 +55,5 @@
</div>
</div>
</div>
{% eventsignal request.event "pretix.control.signals.quota_detail_html" quota=quota %}
{% endblock %}