better grid style

This commit is contained in:
Massimo Di Pierro
2011-12-04 15:12:46 -06:00
parent a461a8558b
commit 774d4b0dd8
3 changed files with 22 additions and 22 deletions
+10 -7
View File
@@ -1361,14 +1361,15 @@ class SQLFORM(FORM):
}
""")
return CAT(
INPUT(
_value="query",_type="button",_id="w2p_query_trigger",
_onclick="jQuery('#w2p_query_fields').val('');jQuery('#w2p_query_panel').slideToggle();"),
DIV(_id="w2p_query_panel",
_style='position:absolute;z-index:1000',
_class='hidden',
*criteria),
fadd,
INPUT(
_value="query",_type="button",_id="w2p_query_trigger",
_onclick="jQuery('#w2p_query_fields').val('');jQuery('#w2p_query_panel').slideToggle();"))
fadd)
@staticmethod
def grid(query,
@@ -1397,7 +1398,7 @@ class SQLFORM(FORM):
oncreate=None,
onupdate=None,
ondelete=None,
sorter_icons=('[^]','[v]'),
sorter_icons=(XML('↑'),XML('↓')),
ui = 'web2py',
showbuttontext=True,
_class="web2py_grid",
@@ -1917,8 +1918,10 @@ class SQLFORM(FORM):
name = db[referee]._format % record
except TypeError:
name = id
breadcrumbs += [A(T(db[referee]._plural),_class=trap_class(),
_href=URL(args=request.args[:nargs])),' ',
breadcrumbs += [A(T(db[referee]._plural),
_class=trap_class(),
_href=URL(args=request.args[:nargs])),
' ',
A(name,_class=trap_class(),
_href=URL(args=request.args[:nargs]+[
'view',referee,id],user_signature=True)),