-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.3.x] [Fixes #8690] Custom filters available for the “ResourceBase”…
… opaque filters (#8733) * [Fixes #8689] Extend the ResourceBase metadata model with an opaque JSONField * [Fixes #8689] Fix missing resource_type for new form instances * [Fixes #8689] Add test and UI fix for doc, maps and geoapps * [Fixes #8689] Fix flakee8 formatting * [Fixes #8689] Extra metadata json saved with format * [Fixes #8689] Refactor validation def, start defining endpoint for API * [Fixes #8689] Definition of extra-metadata endpoints for resources * [Fixes #8689] Converting metadata from jsonfield to manytomany relation * [Fixes #8689] Fix views with new relation and prettify json on UI * [Fixes #8689] Fix serializer * [Fixes #8689] Fix custom metadata endpoint, update metadata schema * [Fixes #8689] Fix flake8 issues * [Fixes #8689] Remove endpoint from each resorce, keep it only on base resource * [Fixes #8689] Fix broken tests * [Fixes #8689] Add metadata filtering in API v1 * [Fixes #8689] Add test for metadata filtering in API v1 * [Fixes #8689] Fix some of broken tests * [Fixes #8689] fix flake8 * [Fixes #8689] fix tests * [Fixes #8689] removed typo on settings.py * [Fixes #8689] fix broken build * [Fixes #8689] fix minor error on filter convertion * [Fixes #8690] first implementation for dynamic filtering * [Fixes #8690] first implementation for dynamic filtering * [Fixes #8689] fix flake8 * [Fixes #8689] Update default schema structure * [Fixes #8690] first implementation for dynamic filtering * [Fixes #8690] Dynamic metadata facet filtering * [Fixes #8690] Minor fix for geoapps * [Fixes #8690] Flake8 format fix
- Loading branch information
1 parent
6d2fe7f
commit 34a9746
Showing
4 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% load i18n %} | ||
{% load base_tags %} | ||
{% dynamic_metadata_filters as data %} | ||
{% for key, values in data.items %} | ||
<nav class="filter"> | ||
<h4><a href="#" class="toggle toggle-nav"><i class="fa fa-chevron-right"></i>{{key}}</a></h4> | ||
<ul class="nav closed" id="dynamic_filter_{{ key|slugify }}"> | ||
{% for el in values %} | ||
<li> | ||
<a id="dynamic_filter_{{ el.id }}" data-value="{{ el.field_value }}" data-filter="metadata__field_value" ng-click="multiple_choice_listener($event)"> | ||
{{ el.field_label }} | ||
<span class="badge pull-right">{{el.count}}</span> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters