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

  • 0
    aliz0611  6 years ago

    I've hacked kmouts's solution to work with bootstrap 3.

    {{extend 'layout.html'}}
    <script type="text/javascript">
        $(function() {
            $("td.w2p_fc").each(function (){
                    	var comment = $(this).html();
        	            if (comment){
        	            	$(this).html('<div class="glyphicon glyphicon-info-sign" aria-hidden="true" data-toggle="tooltip" data-placement="right"></div>');

Commented on:

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

Hosting graciously provided by:
Python Anywhere