deform_bootstrap provides Bootstrap 2 compatible widgets and templates
for the Deform form library.
For documentation, see http://pypi.python.org/pypi/deform_bootstrap
For a demo, take look at
and in particular:
- http://deformdemo.xo7.de/datetime_input/
- http://deformdemo.xo7.de/typeahead_input/
What's in the 0.1 release?
0.1 includes work completed at the PloneKonf sprint in Munich. We now
have two new widgets: a DateTimeInputWidget and a
TypeaheadInputWidget, which have the Twitter Bootstrap look and feel.
Also, existing templates were improved, and all of deformdemo's
Selenium tests are now passing with deform_bootstrap.
Daniel
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
You're right. We broke use_ajax sometime in the process. I think
there was a version conflict between a newer jQuery required for
Bootstrap and the jquery.form.js in deform. Might be easy to fix.
Adding Andreas and Tom in the CC who worked on the JS, maybe they
would know more.
Daniel
> On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims <benjam...@gmail.com> wrote:
>> Hi, this looks great - I've recently been looking into bootstrap so this is
>> very timely for me.
>>
>> I note however that it is not possible to use use_ajax with the package. I
>> wonder if you or the deform team might expand on this - what would it take
>> to use the two together?
>
> You're right. We broke use_ajax sometime in the process. I think
> there was a version conflict between a newer jQuery required for
> Bootstrap and the jquery.form.js in deform. Might be easy to fix.
> Adding Andreas and Tom in the CC who worked on the JS, maybe they
> would know more.
The problem is that Bootstrap requires a recent version of jQuery, but deform's use_ajax feature doesn't work with any jquery.form version greater than 2.43, which in turn is limited to jQuery versions 1.4.x (IIRC).
So basically there are 2 options:
1. manually using (the most recent version of) jquery.form. This works just fine by just putting a one liner in your projects' templates (something like "$('form').ajaxForm({target:$('form').parent()})").
2. updating all JS (static files *and* templates) in deform. This should be done in deform itself, not deform_bootstrap.
Approach 1 is working fine for me in my current project and doesn't add much code (compared to "use_ajax=True").
HTH,
Andreas
Am 13.03.2012 um 19:01 schrieb Daniel Nouri: