diff --git a/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html b/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html index 351c67ddc63e2a643adbbe289580083badfc2707..3622dc32b0d854c8b10a3082eb841529c212bb35 100644 --- a/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html +++ b/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html @@ -13,6 +13,7 @@ {% 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.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 %} <p> @@ -37,6 +38,13 @@ </a> {% 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> {% endif %}