[web2py] How to change the class of from SQLFORM ?

Fri, 21 Jun 2013 03:48:45 -0700

Hi list,

I create a form like this:

form = SQLFORM(db.table,
               int(request.args[0]),
               readonly=True,
               showid=True,
               )
        return dict(form=form)

and render this later with {{=form}}.

Now the rendered form contains a simple <table>...</table> element. I want 
to change the CSS class of this table element, e.g. to <table class="table 
xtable-bordered table-condensed">...</table>.

How can I do this?

-- 

--- 
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