data_processing_part2 = '''Dane są przetwarzane w zakresie niezbędnym do wysyłania newslettera odbiorcom.'''
data_processing_part3 = '''\
Osobom, których dane są zbierane, przysługuje prawo dostępu do treści swoich danych oraz ich poprawiania.
-Więcej informacji w <a href="">polityce prywatności.</a>'''
+Więcej informacji w <a href="https://nowoczesnapolska.org.pl/prywatnosc/">polityce prywatności.</a>'''
@property
def data_processing(self):
--- /dev/null
+{% extends "2022/base.html" %}
+{% load i18n %}
+{% load honeypot %}
+
+
+{% block content %}
+ <div class="l-container">
+ <div class="l-breadcrumb">
+ <a href="/"><span>Strona główna</span></a>
+ <a>{{ page_title }}</a>
+ </div>
+ </div>
+
+ <main class="l-main">
+ <div class="l-checkout__box" style="margin-bottom: 70px;">
+ <div class="l-checkout__box__header">
+ <div class="l-checkout__box__header__content">
+ <h1>{{ page_title }}</h1>
+ </div>
+ </div>
+
+ <div class="l-checkout__cols">
+ <div class="l-checkout__col"></div>
+ <div class="l-checkout__col">
+ <form method="post">
+ <div class="l-checkout__form">
+ {% csrf_token %}
+ {% render_honeypot_field %}
+ {{ form }}
+
+ <div class="helptext">
+ {{ form.data_processing }}
+ </div>
+
+ <div class="l-checkout__form__row confirm">
+ <div class="l-checkout__input">
+ <button style="margin-left:0">Dalej</button>
+ </div>
+ </div>
+
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ </main>
+{% endblock %}
def subscribe_form(request, slug=''):
newsletter = get_object_or_404(Newsletter, slug=slug)
+ new_layout = request.EXPERIMENTS['layout'].value
if request.POST:
form = SubscribeForm(newsletter, request.POST)
if form.is_valid():
return HttpResponseRedirect(reverse('subscribed'))
else:
form = SubscribeForm(newsletter)
- return render(request, 'newsletter/subscribe_form.html', {
+
+ if new_layout:
+ template_name = 'newsletter/2022/subscribe_form.html'
+ form.template_name = '2022/form.html'
+ else:
+ template_name = 'newsletter/subscribe_form.html'
+ return render(request, template_name, {
'page_title': newsletter.page_title,
'form': form,
})
}
}
}
+
+
+form {
+ .required {
+ label:before {
+ content: "* ";
+ color: #FF4C54;
+ }
+ }
+ .helptext {
+ color: #808080;
+ font-size: 15px;
+ line-height: 150%;
+ margin-bottom: 30px;
+ }
+}
--- /dev/null
+{% if errors %}
+ {{ errors }}
+ {% if not fields %}
+ {% endif %}
+{% endif %}
+{% for field in hidden_fields %}{{ field }}{% endfor %}
+{% for field, errors in fields %}
+ <div class="l-checkout__form__row {% if field.field.required %}required {% endif %} {{ field.css_classes }}">
+ <div class="l-checkout__input">
+ {{ errors }}
+ {% if field.label %}{{ field.label_tag }}{% endif %}
+ {# <span>*</span> #}
+ {{ field }}
+ {# field.help_text|safe #}
+ </div>
+ <div class="l-checkout__input">
+ </div>
+ </div>
+{% endfor %}