Skip to content

Commit

Permalink
[Fixes GeoNode#8690] first implementation for dynamic filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 2, 2022
1 parent a6498e2 commit e462385
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions geonode/templates/search/_dynamic_metadata_filter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% load i18n %}
{% load base_tags %}
<div id="dynamic_filters">
{% dynamic_metadata_filters as data %}
{% for key, values in data.items %}
<h4><a href="#" class="toggle toggle-nav"><i class="fa fa-chevron-down"></i>{{key}}</a></h4>
<ul class="nav closed" id="dynamic_filter_{{ key }}">
{% for el in values %}
<li>
<a id="dynamic_filter_{{ el.id }}" data-value="{{ el.value }}" data-filter="metadata__name" ng-click="multiple_choice_listener($event)">
{{ el.name }}
</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</div>

0 comments on commit e462385

Please sign in to comment.