diff --git a/core/templates/dataset-detail.html b/core/templates/dataset-detail.html index cac0a428..b8dace4c 100644 --- a/core/templates/dataset-detail.html +++ b/core/templates/dataset-detail.html @@ -53,44 +53,10 @@

{{ dataset.name }}

-
-
-
Filtros
- -
-
- -
- - -
- - {% for field in fields %} - {% if field.frontend_filter %}{% with value=query_dict|getplainattribute:field|default:'' %} -
- - {% if field.has_choices %} - - {% else %} - - {% endif %} -
- {% endwith %}{% endif %} - {% endfor %} - -
-
- -
- -
+
+ {% include "filters-form.html" with fields=fields query_dict=query_dict %}
-
+

@@ -197,5 +163,6 @@

Filtros
"bInfo": false, }); }); + {% endblock %} diff --git a/core/templates/filters-form.html b/core/templates/filters-form.html new file mode 100644 index 00000000..f60c4a0a --- /dev/null +++ b/core/templates/filters-form.html @@ -0,0 +1,48 @@ +{% load utils %} + + + + \ No newline at end of file