Allow to manually generate invoices like in c131ad8c

This commit is contained in:
Raphael Michel
2018-11-12 13:01:10 +01:00
parent 31cec76809
commit e523a4e610
2 changed files with 22 additions and 2 deletions

View File

@@ -184,6 +184,16 @@
<br/>
{% endif %}
{% endfor %}
{% if can_generate_invoice %}
<br/>
<form class="form-inline helper-display-inline" method="post"
action="{% url "control:event.order.geninvoice" event=request.event.slug organizer=request.event.organizer.slug code=order.code %}">
{% csrf_token %}
<button class="btn btn-default btn-xs">
{% trans "Generate invoice" %}
</button>
</form>
{% endif %}
</dd>
{% elif can_generate_invoice %}
<dt>{% trans "Invoices" %}</dt>