diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/lttr/forms.py | 3 | ||||
-rw-r--r-- | app/lttr/templates/lttr/postcard_subscribe.html | 2 | ||||
-rw-r--r-- | app/pages/templates/pages/luxagraf/cards.html | 2 |
3 files changed, 5 insertions, 2 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}} diff --git a/app/pages/templates/pages/luxagraf/cards.html b/app/pages/templates/pages/luxagraf/cards.html index a940770..d8d7c53 100644 --- a/app/pages/templates/pages/luxagraf/cards.html +++ b/app/pages/templates/pages/luxagraf/cards.html @@ -14,7 +14,7 @@ </header> <div class="post-article"> {{object.body_html|safe|smartypants|widont}} - <p><iframe target='_parent' style="border:none !important; background:white; width:100% !important; height: 400px;" title="embedded form for subscribing the the Friends of a Long Year newsletter" src="{% url 'lttr:postcard_subscribe' %}"></iframe></p> + <p><iframe target='_parent' style="border:none !important; background:white; width:100% !important; height: 300px;" title="embedded form for subscribing the the Friends of a Long Year newsletter" src="{% url 'lttr:postcard_subscribe' %}"></iframe></p> </div> </article> </main> |