Add "grid tools" to "complete" grid template.
We'll see about this...
This commit is contained in:
parent
640bb736b2
commit
654c69772e
|
@ -17,6 +17,13 @@
|
|||
$('.newgrid-wrapper').gridwrapper();
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.grid-tools {
|
||||
float: right;
|
||||
position: relative;
|
||||
top: -36px;
|
||||
}
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
|
@ -25,8 +32,10 @@
|
|||
% endif
|
||||
</%def>
|
||||
|
||||
<%def name="grid_tools()"></%def>
|
||||
|
||||
<ul id="context-menu">
|
||||
${self.context_menu_items()}
|
||||
</ul>
|
||||
|
||||
${grid.render_complete()|n}
|
||||
${grid.render_complete(tools=capture(self.grid_tools))|n}
|
||||
|
|
|
@ -3,5 +3,10 @@
|
|||
% if grid.filterable:
|
||||
${grid.render_filters()|n}
|
||||
% endif
|
||||
% if tools:
|
||||
<div class="grid-tools">
|
||||
${tools|n}
|
||||
</div>
|
||||
% endif
|
||||
${grid.render_grid()|n}
|
||||
</div><!-- newgrid-wrapper -->
|
||||
|
|
Loading…
Reference in a new issue