For the last month or so, I have been working on a plugin that does 
something similar to CRUD, except that it's all AJAX and provides a couple 
of nice features for editing things. Obviously, it doesn't work exactly like 
CRUD, since I've never really looked at the code for it, but I wanted 
something similar that was fast.

Here are some screen shots of how it lists items in a simple, reorderable 
list:

<https://lh6.googleusercontent.com/-ZrAVT54bJcg/TfJZni9VRHI/AAAAAAAAABQ/UwliZ1DRAjM/Screen%252520shot%2525202011-06-10%252520at%2525201.36.13%252520PM.png>
This is the automatically generated editor that shows up with jQuery UI's 
Dialog:

<https://lh6.googleusercontent.com/-ZeGy8t8r4Wg/TfJZ1V9CndI/AAAAAAAAABY/1ec9UoUvsrI/Screen%252520shot%2525202011-06-10%252520at%2525201.36.39%252520PM.png>

Deleting a record is easy too:

<https://lh5.googleusercontent.com/-OpZUcBaVYho/TfJZ9iZEgSI/AAAAAAAAABg/9s4aXK5W75o/Screen%252520shot%2525202011-06-10%252520at%2525201.37.04%252520PM.png>

A more complex list/details view is available as well:

<https://lh4.googleusercontent.com/-Gws74Fzm9c0/TfJaHA8JEwI/AAAAAAAAABo/Gd9SC_VIPEk/Screen%252520shot%2525202011-06-10%252520at%2525201.43.46%252520PM.png>

Finally, the last screen shot was made using only this code in the default 
controller:

<https://lh5.googleusercontent.com/-pQqexQOxIiE/TfJaQr6QMlI/AAAAAAAAABw/wCy9E7FHg2o/Screen%252520shot%2525202011-06-10%252520at%2525201.50.14%252520PM.png>

I originally created this functionality for an application I was using, then 
eventually turned it into a plugin. As such, it assumes that you use jQuery 
UI and the jQuery Layout plugin. It will load the jQuery Layout plugin 
automatically if it is in your app/static/js folder, but again, this assumes 
that you have your own jQuery UI installation. This is probably the only 
draw back so far.

I am not ready to release the code yet, as there is quite a bit of 
documentation that would need to be written for it since it does make a few 
assumptions when creating your own forms versus allowing the plugin to 
create them for you. I am just putting this out there to see if there is any 
community interest in this plugin. If enough people are interested, then I 
will try to set some time aside to clean up the code, document, and release 
the plugin.

Reply via email to