From 548101d8bbd5adff4887cfad8fc70d1a4cf82370 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 31 Jul 2011 23:55:02 +0200 Subject: Some more theming and fixes. --- budget/templates/home.html | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) (limited to 'budget/templates/home.html') 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 %} +

Welcome on the budget manager

-
-
+
+

Log to an existing project...

- - {{ auth_form.hidden_tag() }} - -

{{ auth_form.id.label }}
{{ auth_form.id }}

-

{{ auth_form.password.label }}
{{ auth_form.password }}

-

{{ auth_form.submit }}

+ {{ forms.authenticate(auth_form) }} - {% if 'projects' in session %} -

Recently visisted projects

-
    - {% for id, name in session['projects'] %} -
  • {{ name }}
  • - {% endfor %} -
- {% endif %} + {% include "recent_projects.html" %}
-
-

...or create a new one

- - {{ project_form.hidden_tag() }} - -

{{ project_form.name.label }}
{{ project_form.name }}

-

{{ project_form.id.label }}
{{ project_form.id }}

-

{{ project_form.password.label }}
{{ project_form.password }}

-

{{ project_form.contact_email.label }}
{{ project_form.contact_email }}

-

{{ project_form.submit }}

-
+
+
+

...or create a new one

+ {{ forms.create_project(project_form) }}
+ +
{% endblock %} -- cgit v1.1