"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
					
				
					 3 changed files with 15 additions and 23 deletions
				
			
		| 
						 | 
					@ -79,6 +79,17 @@
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************
 | 
				
			||||||
 | 
					 * tools
 | 
				
			||||||
 | 
					 ******************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.grid-tools {
 | 
				
			||||||
 | 
					    float: right;
 | 
				
			||||||
 | 
					    margin-bottom: 4px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/******************************
 | 
					/******************************
 | 
				
			||||||
 * table
 | 
					 * table
 | 
				
			||||||
 ******************************/
 | 
					 ******************************/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,8 @@
 | 
				
			||||||
## ##############################################################################
 | 
					## ##############################################################################
 | 
				
			||||||
## 
 | 
					## 
 | 
				
			||||||
## Default master 'index' template.  Features a prominent data table and
 | 
					## 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" />
 | 
					<%inherit file="/base.mako" />
 | 
				
			||||||
| 
						 | 
					@ -17,18 +18,11 @@
 | 
				
			||||||
        $('.newgrid-wrapper').gridwrapper();
 | 
					        $('.newgrid-wrapper').gridwrapper();
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  </script>
 | 
					  </script>
 | 
				
			||||||
  <style type="text/css">
 | 
					 | 
				
			||||||
    .grid-tools {
 | 
					 | 
				
			||||||
        float: right;
 | 
					 | 
				
			||||||
        position: relative;
 | 
					 | 
				
			||||||
        top: -36px;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  </style>
 | 
					 | 
				
			||||||
</%def>
 | 
					</%def>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<%def name="context_menu_items()">
 | 
					<%def name="context_menu_items()">
 | 
				
			||||||
  % if master.creatable and request.has_perm('{0}.create'.format(grid.permission_prefix)):
 | 
					  % if master.creatable and request.has_perm('{}.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>
 | 
					      <li>${h.link_to("Create a new {}".format(grid.model_title), url('{}.create'.format(grid.route_prefix)))}</li>
 | 
				
			||||||
  % endif
 | 
					  % endif
 | 
				
			||||||
</%def>
 | 
					</%def>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,19 +43,6 @@
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  </script>
 | 
					  </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<%def name="context_menu_items()">
 | 
					<%def name="context_menu_items()">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue