diff --git a/tailbone/templates/master/index.mako b/tailbone/templates/master/index.mako index e161fe3c..24238b4a 100644 --- a/tailbone/templates/master/index.mako +++ b/tailbone/templates/master/index.mako @@ -16,12 +16,24 @@ ${parent.extra_javascript()} % if use_buefy: ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.grid.js') + '?ver={}'.format(tailbone.__version__))} - % endif + % else: + % endif <%def name="context_menu_items()"> @@ -228,4 +241,9 @@ ## 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} + % if master.deletable and request.has_perm('{}.delete'.format(permission_prefix)) and master.delete_confirm == 'simple': + ${h.form('#', id='delete-object-form')} + ${h.csrf_token(request)} + ${h.end_form()} + % endif % endif