From f1c924b07e91cc93a20a46d102c4ed0533648d53 2015-12-21 17:25:04 From: Bradley M. Kuhn Date: 2015-12-21 17:25:04 Subject: [PATCH] Create renewal option on form. This adds a renewal option to the form. --- diff --git a/www/conservancy/static/js/supporter-page.js b/www/conservancy/static/js/supporter-page.js index d4e82b6ef85f6ac2188842e78bba5727d4ab356f..6983ee57d481b7497bee4d5ca24f0dc01821b349 100644 --- a/www/conservancy/static/js/supporter-page.js +++ b/www/conservancy/static/js/supporter-page.js @@ -181,6 +181,9 @@ $(document).ready(function() { $(".supporter-form-submit#annual").click(function (event) { validateFormAtSubmission($(".supporter-form#annual input#amount"), event); }); + $(".supporter-form-submit#renewal").click(function (event) { + validateFormAtSubmission($(".supporter-form#renewal input#amount"), event); + }); $(".dinner-form-submit").click(function (event) { validateFormAtSubmission($(".dinner-form input#amount"), event); }); @@ -190,17 +193,29 @@ $(document).ready(function() { $("a[href$='monthly']").bind('click', function() { $('.supporter-type-selection#annual').hide(); + $('.supporter-type-selection#renewal').hide(); $('.supporter-type-selection#monthly').show(); $('#monthlySelector').css("font-weight", "bold").css("font-size", "127%"); $('#annualSelector').css("font-weight", "normal").css("font-size", "125%"); + $('#renewalSelector').css("font-weight", "normal").css("font-size", "125%"); $("#form-correction-needed").removeClass("form-error-show").addClass("form-error"); }); $("a[href$='annual']").bind('click', function() { - $('.supporter-type-selection#annual').show(); + $('.supporter-type-selection#renewal').hide(); $('.supporter-type-selection#monthly').hide(); + $('.supporter-type-selection#annual').show(); $('#annualSelector').css("font-weight", "bold").css("font-size", "127%"); + $('#renewalSelector').css("font-weight", "normal").css("font-size", "125%"); $('#monthlySelector').css("font-weight", "normal").css("font-size", "125%"); }); + $("a[href$='renewal']").bind('click', function() { + $('.supporter-type-selection#annual').hide(); + $('.supporter-type-selection#monthly').hide(); + $('.supporter-type-selection#renewal').show(); + $('#renewalSelector').css("font-weight", "bold").css("font-size", "127%"); + $('#monthlySelector').css("font-weight", "normal").css("font-size", "125%"); + $('#annualSelector').css("font-weight", "normal").css("font-size", "125%"); + }); $( ".footnote-mark" ).tooltip({ items: "a", hide: { duration: 5000 }, @@ -230,12 +245,22 @@ $(window).load(function () { $('.supporter-type-selection#monthly').show(); $('#monthlySelector').css("font-weight", "bold").css("font-size", "127%"); $('#annualSelector').css("font-weight", "normal").css("font-size", "125%"); + $('#renewalSelector').css("font-weight", "normal").css("font-size", "125%"); } if (ourURL.search("#annual") > 0) { $('.supporter-type-selection#monthly').hide(); $('.supporter-type-selection#annual').show(); $('#annualSelector').css("font-weight", "bold").css("font-size", "127%"); $('#monthlySelector').css("font-weight", "normal").css("font-size", "125%"); + $('#renewalSelector').css("font-weight", "normal").css("font-size", "125%"); + } + if (ourURL.search("#renewal") > 0) { + $('.supporter-type-selection#monthly').hide(); + $('.supporter-type-selection#annual').hide(); + $('.supporter-type-selection#renewal').show(); + $('#renewalSelector').css("font-weight", "bold").css("font-size", "127%"); + $('#monthlySelector').css("font-weight", "normal").css("font-size", "125%"); + $('#annualSelector').css("font-weight", "normal").css("font-size", "125%"); } } if (location.hash) { diff --git a/www/conservancy/static/supporter/2015-supporter-appeal.html b/www/conservancy/static/supporter/2015-supporter-appeal.html index eb5cc36db107bce35ca25772fe10995c9bbf0dab..ef9a95b574a33d92ee916689387b25e8d3f31cdc 100644 --- a/www/conservancy/static/supporter/2015-supporter-appeal.html +++ b/www/conservancy/static/supporter/2015-supporter-appeal.html @@ -17,6 +17,7 @@

Support us now!

+

via PayPal, ACH, or credit card.

via PayPal, ACH, or credit card.

via PayPal, ACH, or credit card.

@@ -39,7 +40,8 @@ Software Freedom Conservancy, Inc.
137 MONTAGUE ST STE 380
BROOKLYN, NY 11201-3548   USA
- Please write SUPPORTER and t-shirt size in memo line. + Please write SUPPORTER, t-shirt size, if you are renewing, and if + you want public acknowledgment in memo line. @@ -244,7 +246,7 @@ so we can stand up for the GPL together.


- Become a Supporter Now: Annual | Monthly
+ Become a Supporter Now: Annual | Monthly | Annual Renew

Join as an Annual Supporter

@@ -362,6 +364,62 @@ so we can stand up for the GPL together.

+
+

Renew as an Annual Supporter

+ +
+
+ + + + + + + + $120 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. Choosing options here will change any previous settings. +
+ +
+
Please ensure all form data above is correct. {% endblock %}