From e1cbc4bdc7d3fe254aed9a349c0e63751c3da796 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Thu, 28 Feb 2019 16:09:18 +0900 Subject: [PATCH] Use error_prefix if available (for 360Giving error grouping) https://github.com/OpenDataServices/cove/issues/1117 --- CHANGELOG.md | 8 ++++++-- cove/templates/validation_table.html | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7baae2d..e129502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [0.3.0] - 2019-01-07 +## [Unreleased] -### Added +### Changed + +- Use error_prefix in validaiton error modal IDs, if available (for 360Giving error grouping) https://github.com/OpenDataServices/cove/issues/1117 + +## [0.3.0] - 2019-01-07 ### Added diff --git a/cove/templates/validation_table.html b/cove/templates/validation_table.html index 104ca67..f162d1f 100644 --- a/cove/templates/validation_table.html +++ b/cove/templates/validation_table.html @@ -39,7 +39,11 @@

{{ error.schema_title }}

{% endif %} {% if values|length > 3 %} + {% if error_prefix %} + + {% else %} + {% endif %} {{values|length}} {% else %}