If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

  • 1
    kmouts  9 years ago

    Great tip!


    This is how I manipulated it to use bootstrap help icon and its css:


    $(function() {
           	   $("td.w2p_fc").each(function (){
                	var comment = $(this).html();
    	            if (comment){
    	            	$(this).html('<div><i class="icon info icon-info-sign"></i></div>'); 
    	                $(this).children('div').tooltip({ placement : 'right',
    	                						html : true,
    	               							trigger : 'click' });

Commented on:

Shows tooltips in forms created via CRUD or SQLFORM with the field´s comment attribute.

Hosting graciously provided by:
Python Anywhere