khaganat-web/logs/forms.py
Rodolphe Breard b0b8f30580 Migrate to Bulma
Bulma is simple and free full-CSS framework. Unlike Bootstrap, it fits
within a single small CSS file. It is also well integrated in Django.
https://bulma.io/
2018-06-03 22:16:40 +02:00

14 lines
395 B
Python

from django.utils.translation import gettext_lazy as _
from django.forms.widgets import DateInput
from django import forms
import datetime
class SearchForm(forms.Form):
source = forms.CharField(max_length=128)
date = forms.DateField(
label=_('date'),
initial=datetime.date.today(),
widget=DateInput(format='%Y-%m-%d'),
input_formats=['%Y-%m-%d'],
)