If I use the helper function it works. Ran into one issue though.

{{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href = 
URL('delete',args=id), _title = 'Delete',  _onclick = "javascript:return 
confirm('Are you sure you want to process?')", _class = 'Delete') ) }}


Now, if I want to style the image it doesn't work. For example. 

<style>
.Delete {
   width:40px;
   cursor: pointer;
}
</style>

How do I style my logo to specific size?




On Sunday, April 10, 2016 at 11:19:48 PM UTC-4, 黄祥 wrote:
>
> please try
> {{=SPAN(A(T('Delete'), _href = URL('delete', args = [id] ), _title = 
> 'Delete', 
>  _onclick = "javascript:return confirm('Are you sure you want to 
> process?')", 
>  _class = 'to-delete') ) }}
>
> best regards,
> stifan
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to