#25006: Allow for custom Time shortcut in DateTimeShortCuts.js
-------------------------------+--------------------------------------
     Reporter:  RamezIssac     |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by timgraham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 [http://stackoverflow.com/questions/5770973/django-how-to-change-the-
 choices-of-admintimewidget Stackoverflow] has some ideas. Admittedly, none
 of these look particularly robust such that we could recommend them in our
 docs.

 I don't know that spending a lot of time trying to make it more
 customizable is worthwhile (can't think of an easy way), but I think an
 easy win for now would be to add 6pm to the list of choices so at least
 we're consistent with having options for every 6 hours.

 I think the best long-term solution would be to switch to HTML5
 `input="time"` and use the widgets provided by browsers. As of now, we are
 missing IE and Firefox support according to
 [http://www.w3schools.com/html/html_form_input_types.asp w3schools].

--
Ticket URL: <https://code.djangoproject.com/ticket/25006#comment:1>
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/068.71269b9c2a2fbbbe9e6f1b5092e98882%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to