From 8dd2091f31305ebf1a33b6203de73c0ca7359c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Sureau?= Date: Fri, 29 Jul 2011 15:44:15 +0200 Subject: Homepage created and project authentication refactored --- budget/templates/authenticate.html | 6 ++++-- budget/templates/home.html | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 budget/templates/home.html (limited to 'budget/templates') diff --git a/budget/templates/authenticate.html b/budget/templates/authenticate.html index c745e9f..8b57c67 100644 --- a/budget/templates/authenticate.html +++ b/budget/templates/authenticate.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block content %} -

Login to "{{ project.name }}"

+

Authentication

{% for errors in form.errors.values() %}

{{ ", ".join(errors) }}

@@ -8,7 +8,9 @@
{{ form.hidden_tag() }} - Password: + +

{{ form.id.label }}
{{ form.id }}

+

{{ form.password.label }}
{{ form.password }}

{{ form.submit }}

{% endblock %} diff --git a/budget/templates/home.html b/budget/templates/home.html new file mode 100644 index 0000000..5fcdf90 --- /dev/null +++ b/budget/templates/home.html @@ -0,0 +1,28 @@ +{% 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 }}

+
+ +
+

...or create a new project

+ + {{ 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 }}

+
+ +{% endblock %} -- cgit v1.1