Project

General

Profile

« Previous | Next » 

Revision 74ba9776

Added by Benjamin Dauvergne over 11 years ago

new appointment form: use a simple text entry for the duration field

the text entry is modified by the mousewheel with 15 minutes increments.
It uses the jquery mousewheel plugin.

View differences:

calebasse/agenda/forms.py
12 12

  
13 13
class NewAppointmentForm(forms.ModelForm):
14 14
    time = forms.TimeField(label=u'Heure de début')
15
    DURATION_CHOICES = (
16
            (45, '45 minutes'),
17
    )
18
    duration = forms.TypedChoiceField(choices=DURATION_CHOICES,
19
            coerce=int, label=u'Durée')
15
    duration = forms.CharField(label=u'Durée',
16
            help_text=u'en minutes; vous pouvez utiliser la roulette de votre souris.')
20 17

  
21 18
    participants = make_ajax_field(EventAct, 'participants', 'worker', True)
22 19
    patient = make_ajax_field(EventAct, 'patient', 'patientrecord', False)

Also available in: Unified diff