readwriteweb
Jaap Joris Vens 2020-01-02 20:30:24 +01:00
rodzic e0dddeda08
commit bd654f5103
5 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ Page = swapper.load_model('cms', 'Page')
Section = swapper.load_model('cms', 'Section')
class ContactForm(forms.Form):
sender = forms.EmailField(label=_('From'))
sender = forms.EmailField(label=_('Your email address'))
spam_protection = forms.CharField(label=_('Your message'), widget=forms.Textarea())
message = forms.CharField(label=_('Your message'), widget=forms.Textarea(), initial='Hi there!')

Wyświetl plik

@ -47,7 +47,7 @@ div.wrapper {
box-sizing: border-box;
max-width: 700px;
margin: auto;
padding: 1rem;
padding: 0 1rem;
}
div.spacer {

Wyświetl plik

@ -35,7 +35,7 @@ div.wrapper {
box-sizing: border-box;
max-width: 700px;
margin: auto;
padding: 1rem; }
padding: 0 1rem; }
div.spacer {
height: 1rem;

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -1,5 +1,6 @@
from cms.forms import ContactForm
from cms.views import SectionWithFormView, register_view
from cms.views import SectionWithFormView
from cms.decorators import register_view
from .models import *