{% extends 'base.html' %} {% block content %}

All resources to learn {{category}}

Filter by level

{{ level_form.hidden_tag() }} {{ level_form.level(**{'hx-vals': '{"category":"%s"}'|format(category), 'hx-post': url_for('filtered_resources'), 'hx-target': '#resources'}) }}

Filter by type

{{ type_form.hidden_tag() }} {{ type_form.type(**{'hx-vals': '{"category":"%s"}'|format(category), 'hx-post': url_for('filtered_resources'), 'hx-target': '#resources'}) }}
{% for res in resources %}

{{res.title}}

{{res.level}} {{res.type}}
{% if res.reviews %}
Reviews
{% for review in res.reviews %}

"{{review}}"

{% endfor %} {% endif %}
{% endfor %}
{% endblock content %}