diff options
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/edit_project.html | 7 | ||||
| -rw-r--r-- | budget/templates/forms.html | 5 |
2 files changed, 11 insertions, 1 deletions
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("<a style='color:red; ' href='{{ url_for('.remove_project') }}' >{{_("you sure?")}}</a>"); + }); +{% endblock %} + {% block content %} <h2>{{ _("Edit this project") }}</h2> <form method="post"> 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) }} + <div class="actions"> + <button class="btn primary">{{ _("Edit the project") }}</button> + <a id="delete-project" style="color:red; margin-left:10px; cursor:pointer; ">{{ _("delete") }}</a> + </div> {% endmacro %} |
