diff sat_website/forms.py @ 147:d0cd185f9b61

replace apayer with liberapay
author souliane <souliane@mailoo.org>
date Tue, 17 Oct 2017 06:01:01 +0200
parents c868187b8d00
children 75a95a1dfeb6
line wrap: on
line diff
--- a/sat_website/forms.py	Tue Oct 17 04:54:35 2017 +0200
+++ b/sat_website/forms.py	Tue Oct 17 06:01:01 2017 +0200
@@ -96,14 +96,10 @@
     section_3 = Section(label=_(u'Subscription'))
     subscription_amount = ChoiceField(choices=[(amount, u"%s €" % amount) for amount in utils.get_asso_subscr_amounts()])
 
-    section_3b = Section(label="")
-    payment_method = ChoiceField(choices=[(u"transfer", _(u"Bank transfer")), (u"card", _(u"Credit or debit card"))],
-                               help_text=_(u'Choose "Bank transfer" to proceed manually with the association\'s IBAN/BIC numbers. Choose "Credit or debit card" to pay via CB, Visa or Mastercard using a secure banking service. For both methods, we will first send you an email containing all the details.'), widget=forms.RadioSelect)
-
-    section_5 = Section(label=_(u'Reference'))
+    section_4 = Section(label=_(u'Reference'))
     reference = CharField(required=False, label=_(u"Reference"), placeholder=_(u"Adherent number in case of a renewal"))
 
-    section_6 = Section(label=_(u'Comment'))
+    section_5 = Section(label=_(u'Comment'))
     comment = CharField(required=False, label=_(u"Comment"), placeholder="", widget=forms.Textarea(attrs={'rows': 3}))
 
     mailing = BooleanField(required=False, label=_(u"I would like to subscribe to the adherents' mailing list."))
@@ -167,8 +163,6 @@
                 continue  # filter out confirmation fields
             if user_readable and not field.value():
                 continue  # filter out empty value
-            if user_readable and field.name == "payment_method" and self['subscription_amount'].value() == "0":
-                continue  # filter out fields that are not pertinent for the user
             key = field.name
             if isinstance(field.field, BooleanField) and user_readable:
                 value = ugettext(u"yes") if field.value() else ugettext(u"no")
@@ -233,9 +227,9 @@
 BIC: {bic}
 Reason: subscription of {name} {surname} {ref_info}
 
-Or, if you prefer, you can proceed with a credit or debit card:
+If you prefer, you can use the open funding platform Liberapay (since the donations there are anonymous, please reply to this email to inform us if you select this option):
 
-https://www.apayer.fr/salut-a-toi
+https://liberapay.com/salut_a_toi
 
 """)
         FOOTER = ugettext(u"""Below a copy of the information we received: