From fe7628b36ef2b7ccccbd2bdbb032e5dbac3ef6dd Mon Sep 17 00:00:00 2001 From: Joel Addison Date: Sun, 5 Jan 2020 12:02:12 +1000 Subject: [PATCH] Improve credit note page Add link back to attendee and source invoice. Add page title and spacing to page layout. --- .../templates/registrasion/credit_note.html | 55 +++++++++++++------ 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/pinaxcon/templates/registrasion/credit_note.html b/pinaxcon/templates/registrasion/credit_note.html index 37b5d78d..68d0e168 100644 --- a/pinaxcon/templates/registrasion/credit_note.html +++ b/pinaxcon/templates/registrasion/credit_note.html @@ -1,11 +1,15 @@ {% extends "registrasion/base.html" %} {% load bootstrap %} {% load registrasion_tags %} + +{% block head_title %}Credit Note #{{ credit_note.id }}{% endblock %} +{% block page_title %}Credit Note #{{ credit_note.id }}{% endblock %} + {% block proposals_body %} +
+

Details

-

Credit Note

- -{% with note_user=credit_note.invoice.user %} + {% with note_user=credit_note.invoice.user %} -{% endwith %} + {% endwith %} -

This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.

+

This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.

+ + {% if user.is_staff %} +
+ View attendee + View source invoice +
+ {% endif %} +
{% if credit_note.is_unclaimed %}
{% csrf_token %} -

Apply to invoice

-

You can apply this credit note to an unpaid invoice.

+
+

Apply to invoice

+

You can apply this credit note to an unpaid invoice.

-

This credit note belongs to: {{ credit_note.invoice.user.email }} ({{ credit_note.invoice.user.id}}). You can apply this credit note to any user's invoice.

+

This credit note belongs to: {{ credit_note.invoice.user.email }} ({{ credit_note.invoice.user.id}}). You can apply this credit note to any user's invoice.

{{ apply_form|bootstrap }}
-

Generate cancellation fee

-

You can generate an invoice for a cancellation fee, resulting in an invoice - and a new credit note. -

+
+ +
+

Generate cancellation fee

+

You can generate an invoice for a cancellation fee, resulting in an invoice + and a new credit note. +

{{ cancellation_fee_form|bootstrap }}
+
-

Stripe Refund

+ -

Manual refund

-

You can mark this credit note as refunded, and handle the refund manually. -

+
+

Manual refund

+

You can mark this credit note as refunded, and handle the refund manually. +

{{ refund_form|bootstrap }}
+
{% endif %}