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 %}