diff --git a/recette/forms.py b/recette/forms.py index 6f3ca9b..0126b75 100644 --- a/recette/forms.py +++ b/recette/forms.py @@ -2,4 +2,4 @@ from django import forms class SearchForm(forms.Form): - text = forms.CharField() + text = forms.CharField(widget=forms.TextInput(attrs={'autofocus': True})) diff --git a/recette/static/css/main.css b/recette/static/css/main.css new file mode 100644 index 0000000..3f3999c --- /dev/null +++ b/recette/static/css/main.css @@ -0,0 +1 @@ +div.photo { float: right; max-width: 100%; } diff --git a/templates/base.html b/templates/base.html index 7785872..3b2e395 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,9 +1,10 @@ +{% load static %} Recettes {% block title %}page title{% endblock %} - + {% block extrahead %} {% endblock %} @@ -14,6 +15,8 @@ {% endblock %}
+ {% block footer %}
Gestion
+ {% endblock %} diff --git a/templates/recette.html b/templates/recette.html index 26e4942..11b6daf 100644 --- a/templates/recette.html +++ b/templates/recette.html @@ -3,7 +3,7 @@ {% block content %}

{{ recette.nom }}

-
+
{{ recette.preparation }}
@@ -15,3 +15,7 @@ {% endif %} {% endblock %} + +{% block footer %} +
Modifier
+{% endblock %}