From 1327b886fc9813f6afd2b51750a76037248d1acf Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 16 Oct 2016 03:30:42 -0500 Subject: [PATCH] Disable delete button by default, when clicked --- tailbone/templates/master/delete.mako | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tailbone/templates/master/delete.mako b/tailbone/templates/master/delete.mako index 1083d421..12244adf 100644 --- a/tailbone/templates/master/delete.mako +++ b/tailbone/templates/master/delete.mako @@ -3,6 +3,20 @@ <%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)): @@ -19,11 +33,12 @@ <%def name="confirmation()">

    Are you sure about this?

    +
    ${h.form(request.current_route_url())}
    - Whoops, nevermind... +
    ${h.end_form()} @@ -32,7 +47,8 @@ ${self.context_menu_items()} -

    You are about to delete the following ${model_title} record:

    +
    +

    You are about to delete the following ${model_title} and all associated data:

    ${form.render()|n}