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

Suche

{{ form.csrf_token }}
{{ form.location(class="input input-bordered w-full text-lg", id="locationInput", placeholder="Standort/PLZ eingeben") }}
{% if form.location.errors %}
{{ form.location.errors[0] }}
{% endif %}
{{ form.therapy_distance(class="range range-primary flex-grow", id="distanceRange", min=0, max=50, step=1, oninput="document.getElementById('distanceValue').textContent = this.value + ' km'") }}
{% if form.therapy_distance.errors %}
{{ form.therapy_distance.errors[0] }}
{% endif %}
{{ form.therapy_type.label }}
{% for subfield in form.therapy_type %}
{{ subfield(class="checkbox checkbox-primary") }}
{% endfor %} {% if form.therapy_type.errors %}
{{ form.therapy_type.errors[0] }}
{% endif %}
{{ form.therapy_age_range.label }}
{% for subfield in form.therapy_age_range %}
{{ subfield(class="radio radio-primary") }}
{% endfor %} {% if form.therapy_age_range.errors %}
{{ form.therapy_age_range.errors[0] }}
{% endif %}
{{ form.therapy_setting.label }}
{% for subfield in form.therapy_setting %}
{{ subfield(class="radio radio-primary") }}
{% endfor %} {% if form.therapy_setting.errors %}
{{ form.therapy_setting.errors[0] }}
{% endif %}
{{ form.amount_of_weeks(class="range range-primary flex-grow", id="timeRange", min=1, max=4, step=1, oninput="document.getElementById('weeksValue').textContent = this.value + ' nächste(n) Woche(n)'") }}
{% if form.amount_of_weeks.errors %}
{{ form.amount_of_weeks.errors[0] }}
{% endif %}
{% endblock %}