1
|
# -*- coding: utf-8 -*-
|
2
|
|
3
|
from django import forms
|
4
|
|
5
|
class ActSearchForm(forms.Form):
|
6
|
STATES = (
|
7
|
('non-invoicable', u'Non facturable'),
|
8
|
('absent-or-canceled', u'Absent ou annulés'),
|
9
|
('lost', u'Perdus'),
|
10
|
('invoiced', u'Facturé'),
|
11
|
('last-invoicing', u'Dernière facturation'),
|
12
|
('current-invoicing', u'Facturation en cours'))
|
13
|
|
14
|
INITIAL = [x[0] for x in STATES]
|
15
|
|
16
|
last_name = forms.CharField(required=False)
|
17
|
patient_record_id = forms.IntegerField(required=False)
|
18
|
social_security_number = forms.CharField(required=False)
|
19
|
|
20
|
doctor_name = forms.CharField(required=False)
|
21
|
filters = forms.MultipleChoiceField(choices=STATES,
|
22
|
widget=forms.CheckboxSelectMultiple,
|
23
|
initial=INITIAL)
|