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 {
|
||||
width:100%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.web2py_console form select {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.web2py_search_actions{
|
||||
float:left;
|
||||
|
||||
+9
-6
@@ -1840,13 +1840,16 @@ class SQLFORM(FORM):
|
||||
else:
|
||||
label = k
|
||||
options.append(OPTION(T(label),_value=k))
|
||||
f = FORM(SELECT(options, _name="export_type"),
|
||||
INPUT(_type="submit", _value="export"),
|
||||
INPUT(_type="hidden", _name="order", _value=request.vars.order),
|
||||
INPUT(_type="hidden", _name="keywords", _value=request.vars.keywords or ''),
|
||||
_method="GET",
|
||||
_action=url(args=['export']))
|
||||
f = FORM(BUTTON(SPAN(_class="icon downarrow icon-download"),
|
||||
"Export", _type="submit", _class="btn button"),
|
||||
SELECT(options, _name="export_type"),
|
||||
INPUT(_type="hidden", _name="order",
|
||||
_value=request.vars.order),
|
||||
INPUT(_type="hidden", _name="keywords",
|
||||
_value=request.vars.keywords or ''),
|
||||
_method="GET", _action=url(args=['export']))
|
||||
search_actions.append(f)
|
||||
|
||||
#================================================================
|
||||
|
||||
console.append(search_actions)
|
||||
|
||||
Reference in New Issue
Block a user