aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/home.html
diff options
context:
space:
mode:
authorFrédéric Sureau <fred@milka.(none)>2011-07-29 15:44:15 +0200
committerFrédéric Sureau <fred@milka.(none)>2011-07-29 15:44:15 +0200
commit8dd2091f31305ebf1a33b6203de73c0ca7359c4d (patch)
treef84c9191645be2e03b3d77ea28efe2f52dc70ce6 /budget/templates/home.html
parentc7f9df985900c9daf2d79ad09e4434411adc474a (diff)
downloadihatemoney-mirror-8dd2091f31305ebf1a33b6203de73c0ca7359c4d.zip
ihatemoney-mirror-8dd2091f31305ebf1a33b6203de73c0ca7359c4d.tar.gz
ihatemoney-mirror-8dd2091f31305ebf1a33b6203de73c0ca7359c4d.tar.bz2
Homepage created and project authentication refactored
Diffstat (limited to 'budget/templates/home.html')
-rw-r--r--budget/templates/home.html28
1 files changed, 28 insertions, 0 deletions
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 %}
+<h2>Welcome on the budget manager</h2>
+
+<form action="{{ url_for('authenticate') }}" method="post" accept-charset="utf-8">
+ <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>
+</form>
+
+<form action="{{ url_for('create_project') }}" method="post" class="container span-24 add-bill">
+ <h3>...or create a new project</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>
+
+{% endblock %}