{% load honeypot %}
{% render_honeypot_field %}
{% endif %}
- <ol>
- <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
- {% block form_fields %}
- {{ form.as_ul }}
- {% endblock %}
- <li><input type="submit" value="{{ submit }}"/></li>
+ {% if request.EXPERIMENTS.layout.value %}
+ {{ form.as_p }}
+ <p class="helptext">
+ {{ form.data_processing }}
+ </p>
+ <button>{{ submit }}</button>
+ {% else %}
+ <ol>
+ <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
+ {% block form_fields %}
+ {{ form.as_p }}
+ {% endblock %}
+ <li><input type="submit" value="{{ submit }}"/></li>
</ol>
+ {% endif %}
</form>
<div class="form-extra">
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
{% block titleextra %}{{ title }}{% endblock %}
<form id='custom-pdf-form' action="" method="post" accept-charset="utf-8" class="cuteform">
{% csrf_token %}
{% render_honeypot_field %}
+ {% if request.EXPERIMENTS.layout.value %}
+ {{ form.as_p }}
+ <button type="submit">{% trans "Download" %}</button>
+ {% else %}
<ol>
{{ form.nofootnotes|pretty_checkbox }}
{{ form.nothemes|pretty_checkbox }}
<li><input type="submit" value="{% trans "Download" %}"/></li>
</ol>
+ {% endif %}
</form>
class NewsletterForm(Form):
email_field = 'email'
agree_newsletter = BooleanField(
- required=False, initial=False, label=_('I want to receive Wolne Lektury\'s newsletter.'))
+ required=False, initial=False, label=_('I want to receive Wolne Lektury\'s newsletter.'), label_suffix=False)
mailing = False
mailing_field = 'agree_newsletter'
newsletter = None
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="https://nowoczesnapolska.org.pl/prywatnosc/">polityce prywatności.</a>'''
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ # Move the newsletter field to the end.
+ f = self.fields['agree_newsletter']
+ del self.fields['agree_newsletter']
+ self.fields['agree_newsletter'] = f
+
@property
def data_processing(self):
return mark_safe('%s %s %s' % (self.data_processing_part1, self.data_processing_part2, self.data_processing_part3))
email_field = 'contact'
contact = forms.CharField(label=_('Contact'), max_length=120, required=False)
books = forms.CharField(label=_('books'), widget=forms.Textarea, required=True)
- ebook = forms.BooleanField(label=_('ebook'), required=False, initial=True)
- audiobook = forms.BooleanField(label=_('audiobook'), required=False)
+ ebook = forms.BooleanField(label=_('ebook'), required=False, initial=True, label_suffix='')
+ audiobook = forms.BooleanField(label=_('audiobook'), required=False, label_suffix='')
data_processing_part2 = SuggestForm.data_processing_part2
margin-top: 24px;
}
- input {
+ input, textarea, select {
display: block;
width: 100%;
- height: 56px;
background: #FFFFFF;
color: black;
border: 1px solid #D5ECED;
padding: 10px;
outline: 0;
}
+ input, select {
+ height: 56px;
+ }
input[type=checkbox], input[type=radio] {
display: inline;
float: left;
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
+{% block settings %}
+ {% load title %}
+ {% trans "Page does not exist" as title %}
+ {% title title %}
+{% endblock %}
+
+
{% block titleextra %}404 – {% trans "Page does not exist" %}{% endblock %}