brutasse/django-floppyforms — Issue #24: New Search Forms? Better Range widget?
Author: mountainpaul
Created: 2011-11-13 07:09:08+00:00
State: open

The range widget returns a specific value as opposed to a range. HTML5 did not go far enough it appears in this area.

Well, this is quite particular to my case. But I'm looking at creating a new base search form based off the model/floppy forms. In my situation I want to replace all numeric fields, with a new range field. Unlike the floppyforms range field this will return a top and bottom search range ala as in jquery. This is not HTML5 compatible, but it seems there would be great need for this type of widget. The min and max for the widget would be based on the min and max in the database for that field.

In my specific case I will probably iterate over the fields in a form and only modify the widgets for those fields that are numeric (integer, float, or Decimal). This type of search is the more common case, rather than specifying an exact value to search for in the case of numeric fields (it seems someone else has probably solved this before).

http://jqueryui.com/demos/slider/#range