aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/home.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-07-31 23:55:02 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-07-31 23:55:02 +0200
commit548101d8bbd5adff4887cfad8fc70d1a4cf82370 (patch)
tree798470e44e9599a0adf2dea8e476b841418cb3f0 /budget/templates/home.html
parent37be0f4fa196de8c160f1ec59978fd3c15a8bf8d (diff)
downloadihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.zip
ihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.tar.gz
ihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.tar.bz2
Some more theming and fixes.
Diffstat (limited to 'budget/templates/home.html')
-rw-r--r--budget/templates/home.html38
1 files changed, 11 insertions, 27 deletions
diff --git a/budget/templates/home.html b/budget/templates/home.html
index ae36d4a..21de4f1 100644
--- a/budget/templates/home.html
+++ b/budget/templates/home.html
@@ -1,37 +1,21 @@
{% extends "layout.html" %}
{% block content %}
+
<h2>Welcome on the budget manager</h2>
-<div class="span-12 prepend-2">
- <form action="{{ url_for('authenticate') }}" method="post" accept-charset="utf-8">
+<div class="span-12 prepend-2 uniForm" >
+ <form action="{{ url_for('authenticate') }}" method="post" style="width: 300px">
<h3>Log to an existing project...</h3>
-
- {{ auth_form.hidden_tag() }}
-
- <p>{{ auth_form.id.label }}<br /> {{ auth_form.id }}</p>
- <p>{{ auth_form.password.label }}<br /> {{ auth_form.password }}</p>
- <p>{{ auth_form.submit }}</p>
+ {{ forms.authenticate(auth_form) }}
</form>
- {% if 'projects' in session %}
- <h3>Recently visisted projects</h3>
- <ul>
- {% for id, name in session['projects'] %}
- <li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li>
- {% endfor %}
- </ul>
- {% endif %}
+ {% include "recent_projects.html" %}
</div>
-<form class="span-10 last" action="{{ url_for('create_project') }}" method="post" class="container span-24 add-bill">
- <h3>...or create a new one</h3>
-
- {{ project_form.hidden_tag() }}
-
- <p>{{ project_form.name.label }}<br /> {{ project_form.name }}</p>
- <p>{{ project_form.id.label }}<br /> {{ project_form.id }}</p>
- <p>{{ project_form.password.label }}<br /> {{ project_form.password }}</p>
- <p>{{ project_form.contact_email.label }}<br /> {{ project_form.contact_email }}</p>
- <p>{{ project_form.submit }}</p>
-</form>
+<div class="span-10 last uniForm" >
+ <form action="{{ url_for('create_project') }}" method="post" style="width: 300px">
+ <h3>...or create a new one</h3>
+ {{ forms.create_project(project_form) }}</div>
+ </form>
+</div>
{% endblock %}