From c56eadc49bf878ddbedd0b1d8b797c483784a3e5 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 28 Nov 2018 15:37:35 -0600 Subject: [PATCH] Fix "delete object" form submit not real sure why that broke, but this is a better pattern anyway --- tailbone/templates/master/delete.mako | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/tailbone/templates/master/delete.mako b/tailbone/templates/master/delete.mako index da247e5c..6bd48fc4 100644 --- a/tailbone/templates/master/delete.mako +++ b/tailbone/templates/master/delete.mako @@ -1,22 +1,8 @@ -## -*- coding: utf-8 -*- +## -*- coding: utf-8; -*- <%inherit file="/base.mako" /> <%def name="title()">Delete ${model_title}: ${instance_title} -<%def name="head_tags()"> - ${parent.head_tags()} - - - <%def name="context_menu_items()">
  • ${h.link_to("Back to {}".format(model_title_plural), url(route_prefix))}
  • % if master.viewable and request.has_perm('{}.view'.format(permission_prefix)): @@ -35,11 +21,11 @@

    Are you sure about this?


    - ${h.form(request.current_route_url())} + ${h.form(request.current_route_url(), class_='autodisable')} ${h.csrf_token(request)}
    Whoops, nevermind... - + ${h.submit('submit', "Yes, please DELETE this data forever!")}
    ${h.end_form()}