diff --git a/tailbone/templates/master/index.mako b/tailbone/templates/master/index.mako index dd0015eb..c5f56423 100644 --- a/tailbone/templates/master/index.mako +++ b/tailbone/templates/master/index.mako @@ -191,7 +191,7 @@ % endif % if use_buefy: - ${h.form(url('{}.disable_set'.format(route_prefix)), class_='control', ref='disable_selected_form')} + ${h.form(url('{}.disable_set'.format(route_prefix)), ref='disable_selected_form', class_='control')} ${h.csrf_token(request)} ${h.hidden('uuids', v_model='selected_uuids')} Delete Selected - ${h.end_form()} + % if master.set_deletable and master.has_perm('delete_set'): + % if use_buefy: + ${h.form(url('{}.delete_set'.format(route_prefix)), ref='delete_selected_form', class_='control')} + ${h.csrf_token(request)} + ${h.hidden('uuids', v_model='selected_uuids')} + + {{ deleteSelectedText }} + + ${h.end_form()} + % else: + ${h.form(url('{}.delete_set'.format(route_prefix)), name='delete-set', class_='control')} + ${h.csrf_token(request)} + ${h.hidden('uuids')} + + ${h.end_form()} + % endif % endif ## delete search results @@ -301,6 +315,7 @@ ${parent.modify_this_page_vars()}