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 %} -