Add basic "Buefy" support for grids (master index view)
still pretty experimental at this point, but making progress
This commit is contained in:
parent
3cef591719
commit
8d6ecc3ec7
9 changed files with 296 additions and 15 deletions
|
@ -17,7 +17,9 @@
|
|||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
% if not use_buefy:
|
||||
$('.grid-wrapper').gridwrapper();
|
||||
% endif
|
||||
|
||||
% if master.mergeable and request.has_perm('{}.merge'.format(permission_prefix)):
|
||||
|
||||
|
@ -170,4 +172,12 @@
|
|||
|
||||
</%def>
|
||||
|
||||
${grid.render_complete(tools=capture(self.grid_tools).strip(), context_menu=capture(self.context_menu_items).strip())|n}
|
||||
|
||||
% if use_buefy:
|
||||
${grid.render_buefy(grid_columns=grid_columns, grid_data=grid_data, static_data=static_data)|n}
|
||||
|
||||
% else:
|
||||
## no buefy, so do the traditional thing
|
||||
${grid.render_complete(tools=capture(self.grid_tools).strip(), context_menu=capture(self.context_menu_items).strip())|n}
|
||||
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue