18 lines
594 B
Python
18 lines
594 B
Python
#coding=utf-8
|
|
|
|
from django import forms
|
|
|
|
class AdvancedQueryForm(forms.Form):
|
|
WITH_CHIP_CHOICES = (
|
|
('Unknown', 'Afficher toutes les cartes'),
|
|
('True', 'Seulement les cartes avec puce'),
|
|
('False', 'Seulement les cartes sans puce'),
|
|
)
|
|
|
|
label = forms.CharField(max_length=100, label='Libellé')
|
|
country = forms.CharField(max_length=100, label='Pays')
|
|
tags = forms.CharField(max_length=255, label='Tags')
|
|
with_chip = forms.ChoiceField(label='Puce', choices=WITH_CHIP_CHOICES)
|
|
year_begin = forms.IntegerField(label='Date de début')
|
|
year_end = forms.IntegerField(label='Date de fin')
|