[#2534] Améliorations à l'interface utilisateur du formulaire d'établissements.
[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):
6 nom = forms.CharField(widget=forms.TextInput(attrs={'class': 'etablissement-autocomplete'}))
7
8 class Meta:
9 model = ref.EtablissementBase
10
11 class Media:
12 css = {
13 'screen': ('references/jquery-ui.css',)
14 }
15 js = (
16 'references/jquery.min.js',
17 'references/jquery-ui.min.js',
18 'references/etablissement-form.js',
19 )
20