diff options
| author | Frédéric Sureau <fred@milka.(none)> | 2011-08-10 12:59:30 +0200 |
|---|---|---|
| committer | Frédéric Sureau <fred@milka.(none)> | 2011-08-10 12:59:30 +0200 |
| commit | 922bf769f99ab6755c04dc62caab5f91353d4d73 (patch) | |
| tree | 44a00ca957c852c742c72390c2bebcb1a160f6e0 /budget/templates | |
| parent | af2ca220a76d6ffe58d37e52a67f263b8905ed60 (diff) | |
| download | ihatemoney-mirror-922bf769f99ab6755c04dc62caab5f91353d4d73.zip ihatemoney-mirror-922bf769f99ab6755c04dc62caab5f91353d4d73.tar.gz ihatemoney-mirror-922bf769f99ab6755c04dc62caab5f91353d4d73.tar.bz2 | |
It is now possible to edit existing bills.
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/edit_bill.html | 15 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/budget/templates/edit_bill.html b/budget/templates/edit_bill.html new file mode 100644 index 0000000..c78eb09 --- /dev/null +++ b/budget/templates/edit_bill.html @@ -0,0 +1,15 @@ +{% extends "layout.html" %} + +{% block top_menu %} +<a href="{{ url_for('list_bills', project_id=project.id) }}">Back to the list</a> +{% endblock %} + +{% block content %} +<h2>Edit a bill</h2> + +<div class="container span-24 add-bill uniForm" style="width: 400px"> + <form action="{{ url_for('edit_bill', project_id=project.id, bill_id=bill_id) }}" method="post" class=uniForm"> + {{ forms.add_bill(form) }} + </form> +</div> +{% endblock %} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 76a7701..569e30c 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -38,7 +38,8 @@ <td>{{ bill.what }}</td> <td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td> <td>{{ bill.amount }} ({{ bill.pay_each() }} each)</td> - <td><a href="{{ url_for("delete_bill", bill_id=bill.id, project_id=project.id) }}">delete</a></td> + <td><a href="{{ url_for("edit_bill", bill_id=bill.id, project_id=project.id) }}">edit</a> + <a href="{{ url_for("delete_bill", bill_id=bill.id, project_id=project.id) }}">delete</a></td> </tr> {% endfor %} </tbody> |
