diff options
author | lxf <sng@luxagraf.net> | 2021-10-28 21:37:19 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2021-10-28 21:37:19 -0400 |
commit | 8e29519f3518a13ad6f378f5f7036bee580f6f10 (patch) | |
tree | 71b81e3576d94ddb468ecfe82cb57b1c9abb6d18 /app/lttr | |
parent | cee188d8c06bedac16ed630c587285f31592bcab (diff) |
lttr: put finishing touches on postcard form
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}} |