diff --git a/edbob/pyramid/static/css/grids.css b/edbob/pyramid/static/css/grids.css index 9ceeb0c..59c84a9 100644 --- a/edbob/pyramid/static/css/grids.css +++ b/edbob/pyramid/static/css/grids.css @@ -84,7 +84,12 @@ div.grid table tbody td { text-align: left; } +div.grid table tbody td.center { + text-align: center; +} + div.grid table tbody td.right { + float: none; text-align: right; } @@ -133,6 +138,7 @@ div.grid.clickable table tbody tr td.noclick { /* } */ div.pager { + margin-bottom: 20px; margin-top: 5px; } diff --git a/edbob/pyramid/views/grids/core.py b/edbob/pyramid/views/grids/core.py index 0159d48..87de942 100644 --- a/edbob/pyramid/views/grids/core.py +++ b/edbob/pyramid/views/grids/core.py @@ -64,13 +64,3 @@ class GridView(View): def __call__(self): grid = self.grid() return grids.util.render_grid(grid) - - @classmethod - def add_route(cls, config, route_name=None, route_url=None, renderer=None, permission=None): - route_name = route_name or cls.route_name - route_url = route_url or cls.route_url - renderer = renderer or cls.renderer - permission = permission or cls.permission - config.add_route(route_name, route_url) - config.add_view(cls, route_name=route_name, renderer=renderer, - permission=permission, http_cache=0)