From: Radek Czajka Date: Tue, 8 Sep 2020 09:39:01 +0000 (+0200) Subject: Membership form changes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/9a5e7a1f45c46fbf3509cb660e29806e7ca05a8d?ds=sidebyside Membership form changes. --- diff --git a/src/club/forms.py b/src/club/forms.py index 8df778338..2ebe4e58d 100644 --- a/src/club/forms.py +++ b/src/club/forms.py @@ -3,11 +3,12 @@ # from decimal import Decimal from django import forms +from newsletter.forms import NewsletterForm from . import models from .payu.forms import CardTokenForm -class ScheduleForm(forms.ModelForm): +class ScheduleForm(NewsletterForm, forms.ModelForm): class Meta: model = models.Schedule fields = ['monthly', 'amount', 'email'] diff --git a/src/club/templates/club/membership_form.html b/src/club/templates/club/membership_form.html index 43e925f7e..474095be3 100644 --- a/src/club/templates/club/membership_form.html +++ b/src/club/templates/club/membership_form.html @@ -82,7 +82,7 @@ vertical-align: middle; } .kwota.active, .plan-toggle.active { - background: #b2ce1f; + background: #9ACD32; } .inna input {display: none;} .inna.active input {display: inline;} @@ -150,12 +150,12 @@ vertical-align: middle; {% endif %} {% endwith %} - {% chunk 'club_form_top' %}
{% csrf_token %} -

Zadeklaruj, jak często i jaką kwotą chcesz nas wspierać:

+ + {% chunk 'club_form_top' %}
    {% for e in form.non_field_errors %} @@ -169,6 +169,8 @@ vertical-align: middle; {% endfor %}
+

1. Wybierz rodzaj wsparcia

+ {{ form.amount }} {{ form.monthly }}
@@ -176,6 +178,8 @@ vertical-align: middle; miesięcznie
+

2. Wybierz kwotę

+ -

- Podaj nam swój adres e-mail, żebyśmy mogli się z Tobą skontaktować: -

+

3. Podaj adres e-mail

+ +

{{ form.email }}

- {{ form.email }}

- + {{ form.agree_newsletter }} + +

+ +

W każdej chwili możesz zrezygnować z subskrypcji. Więcej w polityce prywatności.

+ +
+ + {% chunk 'club_form_bottom' %} +
@@ -238,8 +252,6 @@ vertical-align: middle;
-{% chunk 'club_form_bottom' %} - {% endblock %}