diff --git a/app/main/views/send.py b/app/main/views/send.py index 07aa0eb52..82619ed8f 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -193,13 +193,9 @@ def send_from_api(service_id, template_id): service_api_client.get_service_template(service_id, template_id)['data'], prefix=current_service['name'] ) - personalisation = { - placeholder: "..." for placeholder in template.placeholders - } return render_template( 'views/send-from-api.html', - template=template, - personalisation=json.dumps(personalisation, indent=4) if personalisation else None + template=template ) diff --git a/app/templates/views/send-from-api.html b/app/templates/views/send-from-api.html index 4a0a91b6f..266bdb088 100644 --- a/app/templates/views/send-from-api.html +++ b/app/templates/views/send-from-api.html @@ -32,9 +32,4 @@ {{ api_key(template.id, name="Template ID", thing='template ID') }} - {% if personalisation %} -

Personalisation (all fields are required)

- {{ personalisation|syntax_highlight_json }} - {% endif %} - {% endblock %} diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 026dc55cf..1cacaf109 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -251,7 +251,7 @@ def test_api_info_page( follow_redirects=True ) assert response.status_code == 200 - assert 'API integration' in response.get_data(as_text=True) + assert 'API info' in response.get_data(as_text=True) def test_download_example_csv(