diff --git a/ckanext/harvest/templates_new/source/edit.html b/ckanext/harvest/templates_new/source/edit.html index d74489b..bf34bf4 100644 --- a/ckanext/harvest/templates_new/source/edit.html +++ b/ckanext/harvest/templates_new/source/edit.html @@ -5,7 +5,12 @@ {% block primary_content_inner %}
{% block form %} - {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% if c.form %} + {# CKAN < 2.3 #} + {{ c.form | safe }} + {% else %} + {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% endif %} {% endblock %}
{% endblock %} diff --git a/ckanext/harvest/templates_new/source/new.html b/ckanext/harvest/templates_new/source/new.html index eaeb0e1..00b4418 100644 --- a/ckanext/harvest/templates_new/source/new.html +++ b/ckanext/harvest/templates_new/source/new.html @@ -14,7 +14,12 @@
{% block form %} - {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% if c.form %} + {# CKAN < 2.3 #} + {{ c.form | safe }} + {% else %} + {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% endif %} {% endblock %}