datepicker frontend
[auf_rh_dae.git] / project / dae / forms.py
index 105ebdf..622d742 100644 (file)
@@ -2,6 +2,7 @@
 
 from django import forms
 from django.forms.models import inlineformset_factory
+from django.contrib.admin import widgets as admin_widgets 
 
 from datamaster_modeles import models as ref
 
@@ -45,6 +46,8 @@ class PosteForm(forms.ModelForm):
         widgets = dict(statut_residence=forms.RadioSelect(),
                        appel=forms.RadioSelect(),
                        nom=forms.TextInput(attrs={'size': 60},),
+                       date_debut=admin_widgets.AdminDateWidget(),
+                       date_fin=admin_widgets.AdminDateWidget(),
                        #devise_min=forms.Select(attrs={'disabled':'disabled'}),
                        #devise_max=forms.Select(attrs={'disabled':'disabled'}),
                     )