Initial commit
This commit is contained in:
commit
aa48b6411f
17 changed files with 322 additions and 0 deletions
17
templates/recette.html
Normal file
17
templates/recette.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ recette.nom }}</h1>
|
||||
|
||||
<div style="float:right;"><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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue