From eddde7d18990ad496f926c21a5800dd12e7c542c Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 1 Aug 2023 18:41:36 +0000 Subject: [PATCH] fix(templates): added super call to resource form error; - Added super call to errors for Resource CreateView specific error message. --- .../templates/scheming/package/snippets/resource_form.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckanext/scheming/templates/scheming/package/snippets/resource_form.html b/ckanext/scheming/templates/scheming/package/snippets/resource_form.html index 4e6b79a4..88d231b0 100644 --- a/ckanext/scheming/templates/scheming/package/snippets/resource_form.html +++ b/ckanext/scheming/templates/scheming/package/snippets/resource_form.html @@ -32,6 +32,9 @@ {%- snippet 'scheming/snippets/errors.html', errors=errors, fields=schema.resource_fields, entity_type='dataset', object_type=dataset_type -%} + {%- else -%} + {# Resource CreateView You must add at least one data resource #} + {{ super() }} {%- endif -%} {% endblock %}