Commit b3bd9489 authored by Michal Čihař's avatar Michal Čihař

Set html 5 type of a field

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9c9b07fe
...@@ -434,7 +434,10 @@ class ReviewForm(forms.Form): ...@@ -434,7 +434,10 @@ class ReviewForm(forms.Form):
''' '''
Translation review form. Translation review form.
''' '''
date = forms.DateField(label=_('Starting date')) date = forms.DateField(
label=_('Starting date'),
widget=forms.TextInput(attrs={'type': 'date'})
)
type = forms.CharField(widget=forms.HiddenInput, initial='review') type = forms.CharField(widget=forms.HiddenInput, initial='review')
def clean_type(self): def clean_type(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment