Add page titles
This commit is contained in:
		
							parent
							
								
									28c3908099
								
							
						
					
					
						commit
						71c5de49d3
					
				
					 3 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -35,6 +35,7 @@ class RecetteForm(forms.ModelForm):
 | 
			
		|||
class RecetteAdmin(admin.ModelAdmin):
 | 
			
		||||
    list_display = ['nom', 'has_photo', 'has_photo_instr']
 | 
			
		||||
    form = RecetteForm
 | 
			
		||||
    save_on_top = True
 | 
			
		||||
    inlines = [IngredientInline]
 | 
			
		||||
 | 
			
		||||
    def has_photo(self, obj):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,8 @@
 | 
			
		|||
{% extends 'base.html' %}
 | 
			
		||||
{% load thumbnail %}
 | 
			
		||||
 | 
			
		||||
{% block title %}Recherche{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block extrahead %}
 | 
			
		||||
<style>
 | 
			
		||||
ul.results { list-style-type: none; padding: 0; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,7 @@
 | 
			
		|||
{% extends 'base.html' %}
 | 
			
		||||
 | 
			
		||||
{% block title %}{{ recette.nom }}{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
<h1>{{ recette.nom }}</h1>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue