Filter meal suggestions by simple flavor profiles

This commit is contained in:
2026-04-13 18:47:39 +02:00
parent f85ec81851
commit 5a1c1d5c41
5 changed files with 193 additions and 35 deletions
+29 -9
View File
@@ -52,15 +52,27 @@
</div>
{% if kind == 'food' %}
<label>
Baustein
<select name="base_type">
{% for value, label in builder_options %}
<option value="{{ value }}" {% if form_data.base_type == value %}selected{% endif %}>{{ label }}</option>
{% endfor %}
</select>
<small class="helper-text">{{ builder_descriptions[form_data.base_type] }}</small>
</label>
<div class="dual-grid">
<label>
Baustein
<select name="base_type">
{% for value, label in builder_options %}
<option value="{{ value }}" {% if form_data.base_type == value %}selected{% endif %}>{{ label }}</option>
{% endfor %}
</select>
<small class="helper-text">{{ builder_descriptions[form_data.base_type] }}</small>
</label>
<label>
Geschmacksrichtung
<select name="flavor_profile">
{% for value, label in food_flavor_options %}
<option value="{{ value }}" {% if form_data.flavor_profile == value %}selected{% endif %}>{{ label }}</option>
{% endfor %}
</select>
<small class="helper-text">{{ food_flavor_descriptions[form_data.flavor_profile] }}</small>
</label>
</div>
<div class="dual-grid">
<label>
@@ -239,6 +251,14 @@
{% endfor %}
</select>
</label>
<label>
Geschmacksrichtung
<select name="quick_food_flavor_profile">
{% for value, label in food_flavor_options %}
<option value="{{ value }}" {% if form_data.quick_food_flavor_profile == value %}selected{% endif %}>{{ label }}</option>
{% endfor %}
</select>
</label>
<label>
Rolle in Vorschlägen
<select name="quick_food_role">