From f3972db96a718413b66efba1e4a0d0339222d83d Mon Sep 17 00:00:00 2001 From: Arnaud Bos Date: Wed, 2 Nov 2011 12:16:01 +0100 Subject: Add a way to delete a project. Fix #63 --- budget/templates/edit_project.html | 7 +++++++ budget/templates/forms.html | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'budget/templates') diff --git a/budget/templates/edit_project.html b/budget/templates/edit_project.html index 0349fe7..e84ad97 100644 --- a/budget/templates/edit_project.html +++ b/budget/templates/edit_project.html @@ -1,5 +1,12 @@ {% extends "layout.html" %} +{% block js %} + $('#delete-project').click(function () + { + $(this).html("{{_("you sure?")}}"); + }); +{% endblock %} + {% block content %}

{{ _("Edit this project") }}

diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 0a06001..9e5ecd6 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -65,7 +65,10 @@ {{ input(form.name) }} {{ input(form.password) }} {{ input(form.contact_email) }} - {{ submit(form.submit) }} +
+ + {{ _("delete") }} +
{% endmacro %} -- cgit v1.1