diff --git a/www/conservancy/templates/supporter/form_partial.html b/www/conservancy/templates/supporter/form_partial.html new file mode 100644 index 0000000000000000000000000000000000000000..f4e0a11f67a1b19e51de09ea0870b100dbb6602a --- /dev/null +++ b/www/conservancy/templates/supporter/form_partial.html @@ -0,0 +1,130 @@ +{% comment %} + +This partial requires these parameters: + +* `form_id`: The type of Supportership this form enrolls. One of "annual", + "monthly", or "renewal". + Note that the form substantially changes the form based on this value. + If you're changing this later to add a type, you'll want to consider how + to handle all those. +* `min_amt`: The lowest amount of support the form will accept. + +This partial accepts these optional parameters: + +* `supptype`: Used in text to describe what type of Supporter this is. + By default, it's generated from form_id. + Override it for renewals. +* `article`: Used in front of `form_id` when it's written in the form. + Default "a". Set it to "an" when `supptype` begins with a vowel. +* `verb`: Used in form text to describe the sign-up process. + Default "join". Use "renew" when `form_id` is "renewal". +* `default_amt`: The amount of support the form loads with. + Default `min_amt`. +* `partial_amt`: This form is for a donor who previously gave `partial_amt`, + and is letting them contribute `min_amt` more to get up the usual + Supporter amount. This is attached to the form as a data attribute. + +{% endcomment %} + +{% with supptype=supptype|default:form_id article=article|default:"a" verb=verb|default:"join" default_amt=default_amt|default:min_amt partial_amt=partial_amt|default:0 %} +
+

{{ verb|capfirst }} as {{ article }} {{ supptype|capfirst }} Supporter

+ + {% if form_id == "annual" %} +

Note: annual supporter is not an automatic renewal + relationship. If you join today, you'll receive an email in about one + year to remind you to optionally renew.

+ {% elif form_id == "monthly" %} +

Monthly renewal is automatic. Also, monthly supporters might not + receive tangible Supporter benefits (such as the t-shirt) until they've + reached at least + {# Six months of payments #} + ${{ min_amt|add:min_amt|add:min_amt|add:min_amt|add:min_amt|add:min_amt }} + in monthly supporter donations. + However, they will be included immediately in + the Supporters' list.

+ {% elif form_id == "renewal" %} +

Note: This option is for existing annual supporters + who seek to renew for another year. The annual renewal is not + automatic; annual supporters are emailed each year to invite them to + optionally renew.

+ {% endif %} + +
+
+ + + + + {% if form_id == "monthly" %} + + + + + + + + + + {% else %} + + + + {% endif %} + ${{ min_amt|add:partial_amt }} is a minimum for + Conservancy Supporters. + Donate smaller amounts here.
+ + Yes + No +
+ + +
+ + Yes + No
+ + Yes + No
+
+
+ +

Button above redirects to PayPal's site for credit + card, bank account or PayPal balance payment methods. Select + options first. +
+
+
+{% endwith %}