{% load crispy_forms_tags %} {% load static %} GymBuddy
{% if messages %}
{% for message in messages %}

{{ message }}

{% endfor %}
{% endif %}
{% csrf_token %}
Search! {{form2|crispy}}
{% csrf_token %}
Log a Food! {{form|crispy}}
{% csrf_token %}
{% if size == 0 %}
No food logged yet, add something to get started!
{% endif %} {% if size != 0 %} {% for date in dates %} {% if size != 0 %}
{{date}}
{% endif %} {% if size == 0 %} {% endif %} {% for food in foods %} {% if food.date == date %} {% endif %} {% endfor %}
Food Carbs Fats Protein Calories
No macros logged yet, add a food to get started!
{{food.name}} {{food.carbs}} g {{food.fats}} g {{food.protein}} g {{food.calories}}
{% csrf_token %}
{% endfor %} {% endif %}