Perhaps my question isn't very well defined.
When defining a linked table in a smartgrid like so:
linked_tables = dict(supply=['file'])
results in:
<a data-w2p_disable_with="default" href=
"/init/supply/index/supply/file.supply/64"><span>Files</span></a>
I want it to be like this (how the view/edit/del buttons are):
<a class="button btn" data-w2p_disable_with="default" href=
"/init/supply/index/supply/file.supply/64"><span class="icon icon-play"
></span><span class="buttontext button">Files</span></a>
I know I could just define them in the links argument:
links = dict(supply=lambda row: A(SPAN(_class='icon icon-play'), SPAN(
'Files', title='Files', _class='buttontext button'), _class='button btn',_href
=URL('supply', 'file.supply', args=[row.id] )))
But I would think that the smartgrid linked table links are customisable?
Is there a setting in the UI argument that will allow me to convert the
links to buttons for example.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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.