{% extends "django_spec_html/base.html" %}{% load i18n %} {% block title %}{% translate "Results" %}{% endblock %} {% block content %}{% comment %} A selector's page: its filter form, a plain GET that works with no script, and its results, which an htmx request is answered with alone. The form shows its fields and no errors of its own: a refusal's every message is in the results, which is the part a live search swaps. A spec declaring shapes gets a second GET form, one input per shape, keeping every other key the page read; the filter form keeps the shapes in turn. {% endcomment %}{% if filter %}
{% for field in filter.form %}{% if field.is_hidden %}{{ field }}{% else %}

{{ field.label_tag }} {{ field }}

{% endif %} {% endfor %}{% for shape in shape_form.fields %}{% for value in shape.values %}{% if value %}{% endif %}{% endfor %}{% endfor %}
{% endif %}{% if shape_form %}
{% for name, value in shape_form.kept %} {% endfor %}{% for shape in shape_form.fields %}

{% if shape.kind == "select" %}{% else %}{% for value in shape.values %}{% endfor %}{% endif %}{% if shape.help %} {{ shape.help }}{% endif %}

{% endfor %}
{% endif %}
{% include "django_spec_html/spec_selector_fragment.html" %}
{% endblock %}