27 lines
579 B
HTML
27 lines
579 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<h1>{{ recette.nom }}</h1>
|
|
|
|
<div>{{ recette.prep|linebreaksbr }}</div>
|
|
|
|
{% if recette.ingredients.count %}
|
|
<div class="ingredients">
|
|
<h2>Ingrédients</h2>
|
|
<ul>
|
|
{% for comp in recette.ingredients.all %}
|
|
<li>{{ comp }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if recette.photo %}
|
|
<div class="photo"><img src="{{ recette.photo.url }}"></div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<div style="text-align: right;"><a href="{% url 'admin:recette_recette_change' recette.pk %}">Modifier</a></div>
|
|
{% endblock %}
|