If it's a recurrent and somewhat "fixed" format, code your own 
serialization and use it...

https://github.com/niphlod/cs_monitor_plugin/blob/master/modules/plugin_cs_monitor/admin_scheduler_helpers.py#L42
https://github.com/niphlod/cs_monitor_plugin/blob/master/controllers/plugin_cs_monitor.py#L282

On Wednesday, February 27, 2013 8:42:36 AM UTC+1, Paolo valleri wrote:
>
> Hi Vincenzo, 
> I came across to the same problem with sqlform and modal. As far as I 
> remember there is nothing 'automatic' to solve the problem.
> However, so far I fixed the duplicate submit buttons by hiding the 
> 'original' one, namely the one belonging to the sqlform, and then adding 
> just a few jquery lines that fire the click event to the original sumbit 
> when the modal submit is clicked. This approach is not clear at all, it 
> works though,
> Something better would be nice to come.
> Paolo
>
> On Wednesday, February 27, 2013 3:59:36 AM UTC+1, Vincenzo Ampolo wrote:
>>
>> Hi, 
>>
>> I'm looking to a way to use the available by default bootstrap modal on 
>> a SQLFORM. 
>>
>> It would be easy to integrate it, or any sort of lightbox like plugin, 
>> with SQLFORM if there is the capability to give a template to SQLFORM(). 
>>
>> Looking at the documentation it doesn't seem that there is a way. 
>>
>> I tried to simply put a form into the body of a modal window but of 
>> course i end up having duplicate submit buttons. 
>>
>> Any clue/suggestion ? 
>> -- 
>> Vincenzo Ampolo 
>> http://goshawknest.wordpress.com/ 
>> http://vincenzo-ampolo.net/ 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to