Add invoice payment information to sponsor admin page
authorDaniel Gustafsson <daniel@yesql.se>
Fri, 20 Jul 2018 11:25:17 +0000 (13:25 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Fri, 20 Jul 2018 11:25:17 +0000 (13:25 +0200)
The invoicing information is present on the sponsorship dashboard,
but not on the detailed sponsorship view which can be confusing.
This adds the payment information on the detailed admin page.

template/confsponsor/admin_sponsor.html

index f0e21c726f04dfd18568c6ca6d7d61244499312c..9a11eead83b7600eb779469817556fd1500a9e9d 100644 (file)
@@ -57,6 +57,12 @@ div.panelwrap {
     <th>Status:</th>
     <td>{%if sponsor.confirmed%}Confirmed ({{sponsor.confirmedat}}){%else%}<i>Awaiting confirmation (signed up {{sponsor.signupat}})</i>{%endif%}</td>
   </tr>
+{%if sponsor.invoice%}
+  <tr>
+    <th>Payment status:</th>
+    <td>{%if sponsor.invoice.paidat%}Paid {{sponsor.invoice.paidat}}{%elif sponsor.invoice.isexpired%}Overdue{%else%}Invoiced{%endif%}</td>
+  </tr>
+{%endif%}
   <tr>
     <th>Edit:</th>
     <td><a class="btn btn-default btn-sm" href="edit/">Edit sponsor</a></td>