{% extends 'base.html' %}

{% block content %}
<h1>Recettes</h1>

<form method="POST">{% csrf_token %}
    {{ form.as_p }}
    <button>Rechercher</button>
</form>

<ul>
{% for recette in recettes %}
    <li><a href="{{ recette.get_absolute_url }}">{{ recette.nom }}</a></li>
{% endfor %}
</ul>
{% endblock %}