"Fix" the stupid styles for the grid tools section..sort of..for now.
At least this gets us back to the basics somewhat. Still ugly as hell though.
This commit is contained in:
parent
a5080b113d
commit
e10b956bf7
|
@ -79,6 +79,17 @@
|
|||
}
|
||||
|
||||
|
||||
/******************************
|
||||
* tools
|
||||
******************************/
|
||||
|
||||
.grid-tools {
|
||||
float: right;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************
|
||||
* table
|
||||
******************************/
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
## ##############################################################################
|
||||
##
|
||||
## Default master 'index' template. Features a prominent data table and
|
||||
## exposes a way to filter and sort the data, etc.
|
||||
## exposes a way to filter and sort the data, etc. Some index pages also
|
||||
## include a "tools" section, just above the grid on the right.
|
||||
##
|
||||
## ##############################################################################
|
||||
<%inherit file="/base.mako" />
|
||||
|
@ -17,18 +18,11 @@
|
|||
$('.newgrid-wrapper').gridwrapper();
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.grid-tools {
|
||||
float: right;
|
||||
position: relative;
|
||||
top: -36px;
|
||||
}
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if master.creatable and request.has_perm('{0}.create'.format(grid.permission_prefix)):
|
||||
<li>${h.link_to("Create a new {0}".format(grid.model_title), url('{0}.create'.format(grid.route_prefix)))}</li>
|
||||
% if master.creatable and request.has_perm('{}.create'.format(grid.permission_prefix)):
|
||||
<li>${h.link_to("Create a new {}".format(grid.model_title), url('{}.create'.format(grid.route_prefix)))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
|
|
|
@ -43,19 +43,6 @@
|
|||
});
|
||||
|
||||
</script>
|
||||
## TODO: This "fixes" styles for some browsers, while breaking them for others...
|
||||
## Need to look into how to really fix this at some point. For now, the "broken"
|
||||
## browsers will have a big gap between the grid table and controls above.
|
||||
## <style type="text/css">
|
||||
## .newgrid table {
|
||||
## position: relative;
|
||||
## top: -32px;
|
||||
## }
|
||||
## .newgrid .pager {
|
||||
## position: relative;
|
||||
## top: -32px;
|
||||
## }
|
||||
## </style>
|
||||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
|
|
Loading…
Reference in a new issue