recettes/templates/recette.html

22 lines
479 B
HTML
Raw Normal View History

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