diff options
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> |
