jsquare / hikeplanner

Find a hike you'll like!
GNU General Public License v2.0
1 stars 0 forks source link

Make a JqueryUI slider django widget #21

Open jason-curtis opened 10 years ago

jason-curtis commented 10 years ago

difficulty: probably tricky. Will involve learning how django form widgets work, which is really not all that bad :) success criteria:

It might be easier to start with a single-input slider and then try to extend that to a MultiWidget that provides a minimum and maximum.

This might be helpful: http://tothinkornottothink.com/post/10815277049/django-forms-i-custom-fields-and-widgets-in-detail

jaimemarijke commented 10 years ago

Looks like this blog explains how to use a MultiWidget to have two "inputs" rendered in a single widget: http://www.ironzebra.com/code/37/how-to-create-separate-name-and-surname-inputs-as-one-widget-in-django

The django docs have some pointers on styling custom widgets using css and js: https://docs.djangoproject.com/en/1.5/topics/forms/media/