diff --git a/ckan/public/base/javascript/modules/basic-form.js b/ckan/public/base/javascript/modules/basic-form.js index eef7e985388..c1ef2da923f 100644 --- a/ckan/public/base/javascript/modules/basic-form.js +++ b/ckan/public/base/javascript/modules/basic-form.js @@ -1,7 +1,7 @@ this.ckan.module('basic-form', function (jQuery, _) { return { initialize: function () { - var message = _('There are unsaved modifications to this form'); + var message = _('There are unsaved modifications to this form').fetch(); this.el.incompleteFormWarning(message); } }; diff --git a/ckan/templates/group/snippets/group_form.html b/ckan/templates/group/snippets/group_form.html index e3ba9ee75a9..dcd029ff2aa 100644 --- a/ckan/templates/group/snippets/group_form.html +++ b/ckan/templates/group/snippets/group_form.html @@ -1,6 +1,6 @@ {% import 'macros/form.html' as form %} -
+ {% block error_summary %} {{ form.errors(error_summary) }} {% endblock %} diff --git a/ckan/templates/package/snippets/package_form.html b/ckan/templates/package/snippets/package_form.html index 6aa97ce70fc..75f7075373b 100644 --- a/ckan/templates/package/snippets/package_form.html +++ b/ckan/templates/package/snippets/package_form.html @@ -3,7 +3,7 @@ {# This provides a full page that renders a form for adding a dataset. It can then itself be extended to add/remove blocks of functionality. #} - + {% block stages %} {{ h.snippet('package/snippets/stages.html', stages=stage) }} {% endblock %} diff --git a/ckan/templates/package/snippets/package_metadata_form.html b/ckan/templates/package/snippets/package_metadata_form.html index 6e9271f8987..dceb3a4e008 100644 --- a/ckan/templates/package/snippets/package_metadata_form.html +++ b/ckan/templates/package/snippets/package_metadata_form.html @@ -3,7 +3,7 @@ {% set data = data or {} %} {% set errors = errors or {} %} - + {{ h.snippet('package/snippets/stages.html', stages=['complete', 'complete', 'active'], pkg_name=pkg_name) }} {{ form.errors(error_summary) }} diff --git a/ckan/templates/related/snippets/related_form.html b/ckan/templates/related/snippets/related_form.html index 148b0983054..e4a2ed63efc 100644 --- a/ckan/templates/related/snippets/related_form.html +++ b/ckan/templates/related/snippets/related_form.html @@ -1,6 +1,6 @@ {% import 'macros/form.html' as form %} - + {% block error_summary %} {% if error_summary | count %}