Instant buy sponsorships should never be manually confirmed
authorMagnus Hagander <magnus@hagander.net>
Tue, 6 Nov 2018 15:34:08 +0000 (16:34 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 6 Nov 2018 15:35:26 +0000 (16:35 +0100)
Since they don't have a contract, we don't confirm them manually, we
wait for the invoice to be paid. So remove the button that allows the
confirmation, to reduce confusion.

template/confsponsor/admin_sponsor.html

index 93828319ee61142d49542687420ac61dcb429dc1..6f69b23857657a58f44f89b7fec4ea80f123f7c2 100644 (file)
@@ -104,6 +104,8 @@ div.panelwrap {
 <p>
 This sponsorship is awaiting an <a href="/invoiceadmin/{{sponsor.invoice.pk}}/">invoice</a> to be paid.
 </p>
+{%if not sponsor.level.instantbuy%}
+{%comment%}Instant buy sponsorships should never be manually confirmed{%endcomment%}
 <p>
 <b>Iff</b> there is a signed <i>and</i> countersigned contract available
 for this sponsor, it can be confirmed before the invoice is paid.
@@ -111,6 +113,7 @@ for this sponsor, it can be confirmed before the invoice is paid.
 <p>
 <a class="btn btn-default" href="confirm/" onClick="return confirmConfirm()">Confirm sponsor</a>
 </p>
+{%endif%}
 {%else%}
 {%comment%}Sponsor has no invoice{%endcomment%}
 {%if sponsor.level.instantbuy%}