recettes/templates/recette.html

22 lines
479 B
HTML

{% extends 'base.html' %}
{% block content %}
<h1>{{ recette.nom }}</h1>
<div class="photo"><img src="{{ recette.photo }}"></div>
<div>{{ recette.preparation }}</div>
{% if recette.ingredients.count %}
<ul>
{% for comp in recette.ingredients.all %}
<li>{{ comp }}</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% block footer %}
<div style="text-align: right;"><a href="{% url 'admin:recette_recette_change' recette.pk %}">Modifier</a></div>
{% endblock %}