# -*- coding: utf-8 -*-
def uidict():
return dict(widget='',
header='',
content='',
default='',
cornerall='',
cornertop='',
cornerbottom='',
button='',
buttontext='',
buttonadd='icon plus icon-plus',
buttonback='icon leftarrow icon-arrow-left',
buttonexport='icon downarrow icon-download',
buttondelete='',
buttonedit='',
buttontable='icon rightarrow icon-arrow-right',
buttonview='',
)
import ui_def
def index():
ui = ui_def.uidict()
query = db.product_family.id>0
form = SQLFORM.grid(query, ui=ui)
response.view = 'iindex.html'
return dict(form=form)
<style>
#header {margin-top:0px;}
div .page-header {margin:5px 0 0}
.mastheader h1 {font-size:30px}
.main {padding: 5px 0 15px 0;}
.web2py_breadcrumbs ul {margin-bottom:10px;}
.web2py_grid .row_buttons a {padding: 0 5px 0 5px;}
.web2py_grid tbody td {padding: 0 5px 0 5px;}
.web2py_grid .row_buttons {min-height: 0;}
</style>
Very useful! Thanks.
SQLFORM.grid for laptops. Less white space, more data. Screen shot at end of post.
Dave S
Not at all. I'm ignoring handhelds right now and assuming desktop users will also appreciate the extra space.