{% extends "base.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n crispy_forms_tags %}

{% block content %}
<div class="card bg-white mb-3">
  <h3 class="card-header text-center">
    HTML not finished <br>
    {{ title }}
  </h3>
  <div class="card-body">
    <p>name : {{ food.name }}</p>
    <p>owner : {{ food.owner }}</p>
    <p>arrival_date : {{ food.arrival_date }}</p>
    <p>expiry_date : {{ food.expiry_date }}</p>
    <p>allergens :</p>
    <ul>
      {% for allergen in food.allergens.iterator %}
        <li>{{ allergen.name }}</li>
      {% endfor %}
    </ul>
    <a href="{% url "food:basic_update" pk=food.pk %}">Update</a>
  </div>
</div>
{% endblock %}
