Replace the Edit literal with an IMG helper.

You can read all about helpers here:

http://www.web2py.com/book/default/chapter/05#HTML-Helpers

On Oct 28, 11:17 pm, Nik Go <[email protected]> wrote:
> Johan, we're you able to specify your own icons for your custom buttons? If
> so, may I know how you did it?
>
>
>
>
>
>
>
> On Thursday, October 27, 2011, Johann Spies wrote:
>
> > On 26 October 2011 19:15, Cliff <[email protected] <javascript:_e({},
> > 'cvml', '[email protected]');>> wrote:
>
> >> So you need a column on the right for an "Add to Cart" button.
>
> > I have previously asked about custom edit buttons and this was the answer
> > (which works):
>
> > *links = [lambda row: A('Edit',_href=URL("controller","edit",
> > args=["update", tablename, a.id]))
> > and set editable, deletable, details  to False. **
>
> > **If you use jqueryui then the links are rendered as buttons
>
> > *The buttons created this way each appears in an extra column.
>
> > Regards
> > Johann
> >  --
> > Because experiencing your loyal love is better than life itself,
> > my lips will praise you.  (Psalm 63:3)

Reply via email to