Skip to content

Commit

Permalink
Use error_prefix if available (for 360Giving error grouping)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 28, 2019
1 parent 773a607 commit 4ca31df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ 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
- 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

Expand Down
4 changes: 4 additions & 0 deletions cove/templates/validation_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ <h4>{{ error.schema_title }}</h4>
{% endif %}
<td class="text-center">
{% if values|length > 3 %}
{% if error_prefix %}
<a data-toggle="modal" data-target=".{{"validation-errors-"|concat:error_prefix|concat:forloop.counter}}">
{% else %}
<a data-toggle="modal" data-target=".{{"validation-errors-"|concat:forloop.counter}}">
{% endif %}
{{values|length}}
</a>
{% else %}
Expand Down

0 comments on commit 4ca31df

Please sign in to comment.