From 1665e860654bddb0e166819e4b46dc7344a1d8ee Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 14 Jan 2016 10:16:45 +0000 Subject: [PATCH] [#219] Don't use c.form to render the form --- ckanext/harvest/templates_new/source/edit.html | 4 +++- ckanext/harvest/templates_new/source/new.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ckanext/harvest/templates_new/source/edit.html b/ckanext/harvest/templates_new/source/edit.html index c5a62bc..d74489b 100644 --- a/ckanext/harvest/templates_new/source/edit.html +++ b/ckanext/harvest/templates_new/source/edit.html @@ -4,6 +4,8 @@ {% block primary_content_inner %}
- {% block form %}{{ c.form | safe }}{% endblock %} + {% block form %} + {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% endblock %}
{% endblock %} diff --git a/ckanext/harvest/templates_new/source/new.html b/ckanext/harvest/templates_new/source/new.html index f98e69c..eaeb0e1 100644 --- a/ckanext/harvest/templates_new/source/new.html +++ b/ckanext/harvest/templates_new/source/new.html @@ -13,7 +13,9 @@ {% block primary_content %}
- {% block form %}{{ c.form | safe }}{% endblock %} + {% block form %} + {{- h.snippet(form_snippet, c=c, **form_vars) -}} + {% endblock %}
{% endblock %}