{% extends "diet_optimizer_website/layout2.html" %} {% block content %}

Hi {{ user.username }}, insert your information here to get your diet plan.

(Visit Diet Settings to save your favorite recipe options.)

User information

{% if launch_popup %} {% endif %}

{{form.cuisines.label}} {% if form.cuisines.errors %} {% for error in form.cuisines.errors %}

{{ error }}

{% endfor %} {% endif %}
{% for cuisine in form.cuisines %} {% if forloop.counter|divisibleby:10 %} {% endif %} {% endfor %}
All
{{cuisine}}

{{form.recipeTypes.label}} {% if form.recipeTypes.errors %} {% for error in form.recipeTypes.errors %}

{{ error }}

{% endfor %} {% endif %}
{% for recipeType in form.recipeTypes %} {% endfor %}
{{recipeType}}

{{form.rawGroups.label}} {% if form.rawGroups.errors %} {% for error in form.rawGroups.errors %}

{{ error }}

{% endfor %} {% endif %}
{% for group in form.rawGroups %} {% if forloop.counter|divisibleby:4 %} {% endif %} {% endfor %}
All
{{group}}

{{form.objectiveNutrition.label}} {% if form.objectiveNutrition.errors %} {% for error in form.objectiveNutrition.errors %}

{{ error }}

{% endfor %} {% endif %}

{% for objective in form.objectiveNutrition %} {% endfor %}
{{objective}}

{{form.objectiveMinMax.label}} {% if form.objectiveMinMax.errors %} {% for error in form.objectiveMinMax.errors %}

{{ error }}

{% endfor %} {% endif %}
{% for objective in form.objectiveMinMax %} {% endfor %}
{{objective}}

Do you want to change calories ranges (Kcal)?

{{form.calLow}}
{{form.calUp}}


Do you want to change protein ranges (g)?

{{form.protLow}}
{{form.protUp}}


Do you want to change carb ranges (g)?

{{form.carbLow}}
{{form.carbUp}}


Do you want to change fat ranges (g)?

{{form.fatLow}}
{{form.fatUp}}


{{form.time.label}} {% if form.time.errors %} {% for error in form.time.errors %}

{{ error }}

{% endfor %} {% endif %}
{{form.time}}

{{form.peculiar_recipe.label}} {% if form.peculiar_recipe.errors %} {% for error in form.peculiar_recipe.errors %}

{{ error }}

{% endfor %} {% endif %}
{{form.peculiar_recipe}}

{% if userDB.accepts_popups %}
{% else %}
{% endif %}
{% endblock %}