From 654c69772e28e5c31c2843c2ac3b47a3e0087139 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 8 Jan 2016 10:50:14 -0600 Subject: [PATCH] Add "grid tools" to "complete" grid template. We'll see about this... --- tailbone/templates/master/index.mako | 11 ++++++++++- tailbone/templates/newgrids/complete.mako | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tailbone/templates/master/index.mako b/tailbone/templates/master/index.mako index eccb7bac..5376c37b 100644 --- a/tailbone/templates/master/index.mako +++ b/tailbone/templates/master/index.mako @@ -17,6 +17,13 @@ $('.newgrid-wrapper').gridwrapper(); }); + <%def name="context_menu_items()"> @@ -25,8 +32,10 @@ % endif +<%def name="grid_tools()"> + -${grid.render_complete()|n} +${grid.render_complete(tools=capture(self.grid_tools))|n} diff --git a/tailbone/templates/newgrids/complete.mako b/tailbone/templates/newgrids/complete.mako index 0636f644..4f6d89aa 100644 --- a/tailbone/templates/newgrids/complete.mako +++ b/tailbone/templates/newgrids/complete.mako @@ -3,5 +3,10 @@ % if grid.filterable: ${grid.render_filters()|n} % endif + % if tools: +
+ ${tools|n} +
+ % endif ${grid.render_grid()|n}