Skip to content
Snippets Groups Projects
Commit 64f9a832 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add button to generate invoices

parent 93299cb9
No related branches found
No related tags found
1 merge request!14Payments
Pipeline #58716 failed
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
{% has_perm 'paweljong.manage_registration' user registration as can_manage_registration %} {% has_perm 'paweljong.manage_registration' user registration as can_manage_registration %}
{% has_perm 'paweljong.delete_registration' user registration as can_delete_registration %} {% has_perm 'paweljong.delete_registration' user registration as can_delete_registration %}
{% has_perm 'paweljong.send_notification_mail' user registration as can_send_notification %} {% has_perm 'paweljong.send_notification_mail' user registration as can_send_notification %}
{% has_perm 'tezor.can_print_invoice' user registration as can_print_invoice %}
{% if can_manage_registration or can_manage_registration_preferences or can_delete_registration or can_send_notification %} {% if can_manage_registration or can_manage_registration_preferences or can_delete_registration or can_send_notification %}
<p> <p>
...@@ -37,6 +38,13 @@ ...@@ -37,6 +38,13 @@
</a> </a>
{% endif %} {% endif %}
{% if can_print_invoice %}
<a href="{% url 'get_invoice_by_pk' registration.get_invoice.pk %}" class="btn waves-effect waves-light">
<i class="material-icons left">attach_money</i>
{% trans "Invoice" %}
</a>
{% endif %}
</p> </p>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment