Add a hint about how to use placeholders

Since placeholders (almost) work now, it’s worth telling people what the syntax
is.

This commit also removes the ‘template type’ picker, since you can only create
SMS templates at the moment. This will be revisited when we start looking at how
you add an email template.
This commit is contained in:
Chris Hill-Scott
2016-02-18 07:44:50 +00:00
parent 3dea04d0c0
commit 2a9f9dcc57

View File

@@ -48,7 +48,7 @@ def add_service_template(service_id):
if form.validate_on_submit():
tdao.insert_service_template(
form.name.data, form.template_content.data, service_id)
form.name.data, 'sms', form.template_content.data, service_id)
return redirect(url_for(
'.manage_service_templates', service_id=service_id))
return render_template(