Artifact 697f589af3efeba3e972e41ef6b9e024728ad11e:
- File applications/admin/models/buttons.py — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 474) [annotate] [blame] [check-ins using] [more...]
# Template helpers import os def button(href, label): return A(SPAN(label),_class='button',_href=href) def sp_button(href, label): return A(SPAN(label),_class='button special',_href=href) def helpicon(): return IMG(_src=URL('static', 'images/help.png'), _alt='help') def searchbox(elementid): return TAG[''](LABEL(IMG(_src=URL('static', 'images/search.png'), _alt=T('filter')), _class='icon', _for=elementid), ' ', INPUT(_id=elementid, _type='text', _size=12))