<!-- Function that creates a portfolio dynamically depending on the available tools --> {{ availableTools=getAvailableTools(membership)
for result in availableTools : name=result.tool for tool in getRow(name) : img= tool.img portfolio='#portfolioModal'+str(tool.nbr) =DIV(A(DIV(DIV(I(P(name),_class='fa fa-search-plus fa-3x'),_class='caption-content'),_class='caption'),IMG(_src=img,_class='img-responsive',_alt=''),_href=portfolio,_class='portfolio-link',**{'_data-toggle':'modal'}),**{'_class':'col-sm-4 portfolio-item'}) pass pass }} Le vendredi 19 mai 2017 08:57:14 UTC+2, sunda...@gmail.com a écrit : > > Hello everyone, > > > So i started web2py it have been 1 month but i have still have some > questions. What is sad is that with normal html and css it could be easier > for me, but my workplace want me to use web2py. > > The question is that in my view i receive a list. Each element of the list > got an image. and what i want is to display this list(image) like an array. > i want the display to be elegant. like > > If this is the page i want this kind of display : > > > Image1 Image2 Image3 > Image4 Image5 Image6 > > > etc.... > > Actually i am using this, _class':'col-sm-4 ... it works but have bugs > like the diplay is like ( there is some hole inside the array, and i don't > know why) > > > Image1 Image2 Image3 > > Image4 > Image5 Image6 > > Plz Helpp me its so urgent .... > > -- 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.