diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-21 20:54:20 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-21 20:54:20 +0200 |
| commit | 35ea308a2692365001dc88212999df9a041bdaf7 (patch) | |
| tree | c519797a3d7added2421840e78f56e488096b856 /budget/templates/forms.html | |
| parent | 63a64910018cbc029e34ccf93370649a517c96d8 (diff) | |
| download | ihatemoney-mirror-35ea308a2692365001dc88212999df9a041bdaf7.zip ihatemoney-mirror-35ea308a2692365001dc88212999df9a041bdaf7.tar.gz ihatemoney-mirror-35ea308a2692365001dc88212999df9a041bdaf7.tar.bz2 | |
Fix a weird behavior with tests and databases.
Now all the database during the tests is in memory, created for each test and cleared at the end of the test.
Diffstat (limited to 'budget/templates/forms.html')
| -rw-r--r-- | budget/templates/forms.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 4e62f58..690f59d 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -26,17 +26,19 @@ </div> {% endmacro %} -{% macro authenticate(form) %} +{% macro authenticate(form, home=False) %} {% include "display_errors.html" %} {{ form.hidden_tag() }} {{ input(form.id) }} {{ input(form.password) }} + {% if not home %} {{ submit(form.submit) }} + {% endif %} {% endmacro %} -{% macro create_project(form) %} +{% macro create_project(form, home=False) %} {% include "display_errors.html" %} {{ form.hidden_tag() }} @@ -44,7 +46,9 @@ {{ input(form.id) }} {{ input(form.password) }} {{ input(form.contact_email) }} + {% if not home %} {{ submit(form.submit) }} + {% endif %} {% endmacro %} @@ -70,10 +74,3 @@ <button class="btn">Add a new user</button> {% endmacro %} - -{% macro authenticate(form) %} - {{ form.hidden_tag() }} - {{ input(form.id) }} - {{ input(form.password) }} - {{ submit(form.submit) }} -{% endmacro %} |
