{% extends 'food/food_wrapper.jinja' %}
{% import '/macros/food_macros.jinja' as macros %}
{% block headline %}
    <h1 class="text-center">Food Picture Management View</h1>
{% endblock %}
{% block content %}
    <div class="container-fluid">
    <h2>Bilder</h2>
        <div class="row">
            {% for picture in pictures %}
                <div class="col-6">
                    <a href="{{ url('foodpicture-save', kwargs={'id':picture.id}) }}">
                        <h3>{{ picture.food.name }}</h3>
                        <img src="{{ picture.image.image.url }}" style="width: 50%">
                    </a>
                </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}