diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-19 23:44:54 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-19 23:44:54 +0200 |
| commit | 28a3abf96d010db8253b53933d6ab36c4dd412d9 (patch) | |
| tree | 6dbe43affed2727dd6494e281676bdf75677a59a /budget/templates/add_bill.html | |
| parent | 402d756bf1e54236164643f2484e8fa9c78dc6d8 (diff) | |
| download | ihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.zip ihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.tar.gz ihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.tar.bz2 | |
No need anymore to pass the project_id to the urls.
The project is now directly added to the context local g object, and injected on the fly into the urls that need it.
This commits also add ideas found while reading the flask documentation. The project can be enhanced in many ways, some ideas are stated there.
Diffstat (limited to 'budget/templates/add_bill.html')
| -rw-r--r-- | budget/templates/add_bill.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html index d844b6a..5b3a768 100644 --- a/budget/templates/add_bill.html +++ b/budget/templates/add_bill.html @@ -1,14 +1,14 @@ {% extends "layout.html" %} {% block top_menu %} -<a href="{{ url_for('list_bills', project_id=project.id) }}">Back to the list</a> +<a href="{{ url_for('list_bills') }}">Back to the list</a> {% endblock %} {% block content %} <h2>Add a new bill</h2> <div class="container span-24 add-bill uniForm" style="width: 400px"> - <form action="{{ url_for('add_bill', project_id=project.id) }}" method="post" class=uniForm"> + <form action="{{ url_for('add_bill') }}" method="post" class=uniForm"> {{ forms.add_bill(form) }} </form> </div> |
