From f9b5d2c5e763fcde23be844203c441d8ffe56771 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 1 Aug 2023 16:59:23 +0000 Subject: [PATCH] fix(templates): added none raised error output; - Added non-scheming error to output of resource form. --- .../public/package/snippets/resource_form.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ckanext/canada/templates/public/package/snippets/resource_form.html b/ckanext/canada/templates/public/package/snippets/resource_form.html index 9962d5bc4..1097053b0 100644 --- a/ckanext/canada/templates/public/package/snippets/resource_form.html +++ b/ckanext/canada/templates/public/package/snippets/resource_form.html @@ -1,5 +1,15 @@ {% ckan_extends %} +{% block stages %} + {{ super() }} + {% if error_summary and error_summary|length == 1 and _('Error') in error_summary %} +
+

{{ _('Error') }}

+

{{ error_summary[_('Error')] }}

+
+ {% endif %} +{% endblock %} + {% block basic_fields_url %} {{ form.input('url', id='field-url', label=_('URL'), placeholder=_('http://whatever'), value=data.url, error=errors.name) }} {% endblock %} @@ -10,4 +20,3 @@ {% block again_button %} {% endblock %} -