[#2534] S'assurer que l'autocomplete du browser ne passe jamais par-dessus l'autocomp...
[auf_django_references.git] / auf / django / references / forms.py
CommitLineData
652c5d02
EMS
1from django import forms
2
3from auf.django.references import models as ref
4
5class EtablissementForm(forms.ModelForm):
ac640bfc
EMS
6 nom = forms.CharField(widget=forms.TextInput(attrs={
7 'class': 'etablissement-autocomplete',
8 'autocomplete': 'off'
9 }))
652c5d02
EMS
10
11 class Meta:
12 model = ref.EtablissementBase
13
14 class Media:
15 css = {
16 'screen': ('references/jquery-ui.css',)
17 }
18 js = (
19 'references/jquery.min.js',
20 'references/jquery-ui.min.js',
21 'references/etablissement-form.js',
22 )
23