Make subject a textarea

In order for subject lines to have their fields highlighted they have to
be textboxes. This is because the highlighting script only works with
textboxes that don’t scroll, either horizontally, vertically, or be
keying through them.
This commit is contained in:
Chris Hill-Scott
2016-04-14 14:04:41 +01:00
parent 83c6baf977
commit 1bf4d00e19
2 changed files with 3 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ class SMSTemplateForm(Form):
class EmailTemplateForm(SMSTemplateForm):
subject = StringField(
subject = TextAreaField(
u'Subject',
validators=[DataRequired(message="Cant be empty")])

View File

@@ -15,8 +15,8 @@
<form method="post">
<div class="grid-row">
<div class="column-two-thirds">
{{ textbox(form.name, width='1-1', hint='Your recipients wont see this') }}
{{ textbox(form.subject, width='1-1') }}
{{ textbox(form.name, width='1-1', hint='Your recipients wont see this', rows=10) }}
{{ textbox(form.subject, width='1-1', rows=2) }}
</div>
<div class="column-two-thirds">
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}