[web2py] width

2013-01-09 Thread Saba
db.define_table('emp', Field('name') -- some of the data in this column has really long values. ) db.define_table('emp_details', Field('name'),requires=[IS_IN_DB(db,'employee.name')]), Field('details') ) I'm using SQLFORM.grid to manage the data in the above tables. The SQLFORM.gr

[web2py] width and height attribute IMG helper

2010-10-28 Thread annet
Is it possible to set a width and height attribute using the following IMG helper? {{=IMG(_src=URL(r=request,c='static',f='init/businesscard/ image.jpg'))}} Kind regards, Annet

Re: [web2py] width and height attribute IMG helper

2010-10-28 Thread Martín Mulone
{{=IMG(_src=URL(r=request,c='static',f='init/businesscard/ image.jpg'),_width="200px",_height="200px")}} 2010/10/28 annet > Is it possible to set a width and height attribute using the following > IMG helper? > > {{=IMG(_src=URL(r=request,c='static',f='init/businesscard/ > image.jpg'))}} > > > K

[web2py] Width not working when resizing an image to use it as a submit button

2012-11-16 Thread Francisco Barretto
Hi there! I'm having some troubles using an image as a substitute for a submit button... I'm generating the form in the controller and using a local image as follows: INPUT(_type="image", _value="Editar", _width="16", _height="16", _alt= "Editar", _src="/"+request.application+"/static/images/e