django-uni-form

14 views
Skip to first unread message

Aza

unread,
Apr 9, 2011, 7:24:47 AM4/9/11
to dojango-users
Are there any plans to implement something like django-uni-form in
dojango (so we don't have to use jQuery)?

Thanks for dojango...

Tobias von Klipstein

unread,
Apr 20, 2011, 5:54:25 AM4/20/11
to dojang...@googlegroups.com
Hi Aza,

as django-uni-form is mostly just a template that is formatting a form it should be easy to use it without the jquery dependency. It'll just require to overwrite the templates that come with django-uni-form in your "core" app:


And load a different file than (or leave it completely out as it is just handling active/hover state):


Of course this would require to be rewritten using dojo, but as it is just setting classes on DOM elements that should be trivial.

If you use the tag {% uni_form_jquery %} you would have to rewrite the following template using dojo:


Maybe you will also run into more problems when you render dojo form elements using uni-form. I assume that several css rules that directly apply to DOM elements instead of classes will break the UI components of Dojo, e.g.:


Maybe you could give it a try and just render a dojango form using django-uni-form with:

{% load uni_form_tags %}
{{ dojango_form|as_uni_form }}

Hope that helps.

Regards, Tobias

--
You received this message because you are subscribed to the Google Groups "dojango-users" group.
To post to this group, send email to dojang...@googlegroups.com.
To unsubscribe from this group, send email to dojango-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dojango-users?hl=en.


Kind regards / Mit freundlichen Grüßen

Tobias von Klipstein
--
We open the mobile web.
uxebu Consulting Ltd. & Co. KG
Richard-Strauss-Str. 21, 81677 München
klip...@uxebu.com, mobile: +49 175 207 32 45

Amtsgericht München, Handelsregister HRA 93461
uxebu Ltd. - Sitz München, Handelsregister HRB 176791
Directors: W. Kriesing, N. Onken, T. von Klipstein

Reply all
Reply to author
Forward
0 new messages