better export buttons in grid, thanks Niphlod
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-17 17:11:20) dev
|
Version 2.00.0 (2012-07-17 17:13:37) dev
|
||||||
|
|||||||
@@ -225,8 +225,12 @@ div.error {
|
|||||||
|
|
||||||
.web2py_console form {
|
.web2py_console form {
|
||||||
width:100%;
|
width:100%;
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.web2py_console form select {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.web2py_search_actions{
|
.web2py_search_actions{
|
||||||
float:left;
|
float:left;
|
||||||
|
|||||||
+9
-6
@@ -1840,13 +1840,16 @@ class SQLFORM(FORM):
|
|||||||
else:
|
else:
|
||||||
label = k
|
label = k
|
||||||
options.append(OPTION(T(label),_value=k))
|
options.append(OPTION(T(label),_value=k))
|
||||||
f = FORM(SELECT(options, _name="export_type"),
|
f = FORM(BUTTON(SPAN(_class="icon downarrow icon-download"),
|
||||||
INPUT(_type="submit", _value="export"),
|
"Export", _type="submit", _class="btn button"),
|
||||||
INPUT(_type="hidden", _name="order", _value=request.vars.order),
|
SELECT(options, _name="export_type"),
|
||||||
INPUT(_type="hidden", _name="keywords", _value=request.vars.keywords or ''),
|
INPUT(_type="hidden", _name="order",
|
||||||
_method="GET",
|
_value=request.vars.order),
|
||||||
_action=url(args=['export']))
|
INPUT(_type="hidden", _name="keywords",
|
||||||
|
_value=request.vars.keywords or ''),
|
||||||
|
_method="GET", _action=url(args=['export']))
|
||||||
search_actions.append(f)
|
search_actions.append(f)
|
||||||
|
|
||||||
#================================================================
|
#================================================================
|
||||||
|
|
||||||
console.append(search_actions)
|
console.append(search_actions)
|
||||||
|
|||||||
Reference in New Issue
Block a user