diff options
Diffstat (limited to 'app/lttr')
-rw-r--r-- | app/lttr/forms.py | 3 | ||||
-rw-r--r-- | app/lttr/templates/lttr/postcard_subscribe.html | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/lttr/forms.py b/app/lttr/forms.py index 5718d6e..39c4db2 100644 --- a/app/lttr/forms.py +++ b/app/lttr/forms.py @@ -105,3 +105,6 @@ class PostcardForm(forms.ModelForm): class Meta: model = PostcardSubscriber fields = ['name', 'address'] + widgets = { + 'address': forms.Textarea(attrs={'rows':3, 'cols':40}), + } diff --git a/app/lttr/templates/lttr/postcard_subscribe.html b/app/lttr/templates/lttr/postcard_subscribe.html index 4d917dc..71b19b0 100644 --- a/app/lttr/templates/lttr/postcard_subscribe.html +++ b/app/lttr/templates/lttr/postcard_subscribe.html @@ -14,7 +14,7 @@ </style> </head> <body> - <form action="" method="post" target='_parent' class="generic-form newsletter-subscribe comment-form card-subscribe">{% csrf_token %} + <form action="" method="post" target='_parent' class="generic-form comment-form card-subscribe">{% csrf_token %} {% for field in form %} <fieldset> {{field.label_tag}} |