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