Allow ingredient editing in admin
This commit is contained in:
		
							parent
							
								
									c369fbac1e
								
							
						
					
					
						commit
						1247a53278
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,11 +3,14 @@
 | 
			
		|||
{% block content %}
 | 
			
		||||
<h1>{{ recette.nom }}</h1>
 | 
			
		||||
 | 
			
		||||
{% if recette.photo %}
 | 
			
		||||
<div class="photo"><img src="{{ recette.photo.url }}"></div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
<div>{{ recette.preparation }}</div>
 | 
			
		||||
<div>{{ recette.prep|linebreaksbr }}</div>
 | 
			
		||||
 | 
			
		||||
{% if recette.ingredients.count %}
 | 
			
		||||
<h2>Ingrédients</h2>
 | 
			
		||||
<ul>
 | 
			
		||||
    {% for comp in recette.ingredients.all %}
 | 
			
		||||
    <li>{{ comp }}</li>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue