Enhance the ‘how to do placeholders’ hint

This commit makes the ‘how to do placeholders’ box part of the tour,
with the same blue background.

It also adds some Javascript enhancement so that:
- it responds to the contents of the message template
- has a ‘show me’ link which inserts ‘Dear ((name))’ into the template
  contents textbox

We’ve found that this has helped people understnad what placeholders
are, and how to do them.
This commit is contained in:
Chris Hill-Scott
2016-03-30 11:39:16 +01:00
parent 5d873bdc45
commit eaa72074db
7 changed files with 84 additions and 33 deletions

View File

@@ -202,7 +202,7 @@ class SMSTemplateForm(Form):
validators=[DataRequired(message="Template name cannot be empty")])
template_content = TextAreaField(
u'Message',
u'Message content',
validators=[DataRequired(message="Template content cannot be empty")])