#22538: Support for HTML5 Date and Time input fields
-------------------------------+--------------------
     Reporter:  me@…           |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Forms          |    Version:  1.6
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 By default, the input_type of fields of type DateInput, DateTimeInput,
 TimeInput in the file django/forms/widgets.py is "text". This is because
 these fields inherit from TextField class which has input_type = "text".

 If we change the input_type in each of the classes to their HTML5
 specified equivalent, forms will be better.



 {{{
 ...
 class DateInput(TextInput):
      input_type = "date"
 ...

 ...
 class DateTimeInput(TextInput):
      input_type = "datetime"
 ...

 ...
 class TimeInput(TextInput):
      input_type = "time"
 ...
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22538>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/058.01a84f57f231dcb01377490f8ba7e313%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to