[Verdebinario] jquery form select box dropdown
Giuseppe De Marco
peppelinux a yahoo.it
Mer 20 Apr 2011 08:28:40 CDT
http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx
https://github.com/choonkeat/yaselect
http://www.8stream.com/blog/entry/styleselect
http://www.queness.com/post/204/25-jquery-plugins-that-enhance-and-beautify-html-form-elements
per costruire un tema jquery :)
http://jqueryui.com/themeroller/#
... ma la risposta al problema è in django !
http://docs.djangoproject.com/en/dev/ref/forms/fields/#creating-custom-fields
The __unicode__ method of the model will be called to generate string
representations of the objects for use in the field's choices; to provide
customized representations, subclassModelChoiceField and
override label_from_instance. This method will receive a model object, and
should return a string suitable for representing it. For example:
class MyModelChoiceField(ModelChoiceField): def label_from_instance(self, obj):
return "My Object #%i" % obj.id
Maggiori informazioni sulla lista
Verdebinario