Project

General

Profile

« Previous | Next » 

Revision 48a85f96

Added by Jérôme Schneider over 11 years ago

actes: suppport act update (fix #2092)

View differences:

calebasse/actes/forms.py
3 3
from django import forms
4 4

  
5 5
from calebasse.actes.models import Act
6
from ajax_select import make_ajax_field
6 7

  
7 8
class ActSearchForm(forms.Form):
8 9
    STATES = (
......
29 30
            widget=forms.CheckboxSelectMultiple)
30 31

  
31 32
class ActUpdate(forms.ModelForm):
33
    doctors = make_ajax_field(Act, 'doctors', 'intervenant', True)
32 34
    class Meta:
33 35
        model = Act
36
        fields = ('act_type', 'doctors', 'is_lost', 'pause', 'switch_billable', 'comment',
37
                'valide')
38
        widgets = {
39
                'comment': forms.Textarea(attrs={'cols': 52, 'rows': 4}),
40
                }
34 41

  
35 42

  
36 43
        

Also available in: Unified diff