eb82bd88ca18693143d83deddce072b83f3b3092
[auf_django_references.git] / auf / django / references / forms.py
1 from django import forms
2
3 from auf.django.references import models as ref
4
5 class EtablissementForm(forms.ModelForm):
6 nom = forms.CharField(widget=forms.TextInput(attrs={
7 'class': 'etablissement-autocomplete',
8 'autocomplete': 'off'
9 }))
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