diff --git a/app/main/views/templates.py b/app/main/views/templates.py index a583e8d9c..5d1afb585 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -14,7 +14,6 @@ from client.errors import HTTPError def manage_service_templates(service_id): try: templates = tdao.get_service_templates(service_id)['data'] - print(templates) except HTTPError as e: if e.status_code == 404: abort(404) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 85ec76dd6..dc399687f 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -57,7 +57,7 @@
diff --git a/app/templates/views/manage-templates.html b/app/templates/views/manage-templates.html index 55a2a2ee3..149f443b6 100644 --- a/app/templates/views/manage-templates.html +++ b/app/templates/views/manage-templates.html @@ -20,15 +20,15 @@ GOV.UK Notify | Manage templates {% for template in templates %} {% if template.get_field('template_type') == 'sms' %} {{ sms_message( - template.content, - name=template.name, + template.get_field('content'), + name=template.title, edit_link=url_for('.edit_service_template', service_id=template.get_field('service'), template_id=template.get_field('id')) ) }} {% elif template.get_field('template_type') == 'email' %} {{ email_message( - "template subject", - template.content, - name=template.name, + template.get_field('subject'), + template.get_field('content'), + name=template.get_field('name'), edit_link=url_for('.edit_service_template', service_id=template.get_field('service'), template_id=template.get_field('id')) ) }} {% endif %}