aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-08-21 01:50:35 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-08-21 01:50:35 +0200
commit2fdc86136d402b822e6cc693d9bd29615f7fce0d (patch)
treeede6d723e9d5526f701ab050ab90805cbe7ef2f8
parent7d60bee0ef5a38e6765b9bb51ae7e200157591a0 (diff)
downloadihatemoney-mirror-2fdc86136d402b822e6cc693d9bd29615f7fce0d.zip
ihatemoney-mirror-2fdc86136d402b822e6cc693d9bd29615f7fce0d.tar.gz
ihatemoney-mirror-2fdc86136d402b822e6cc693d9bd29615f7fce0d.tar.bz2
minor changes to the homepage
-rw-r--r--budget/templates/home.html30
-rw-r--r--budget/templates/recent_projects.html2
2 files changed, 18 insertions, 14 deletions
diff --git a/budget/templates/home.html b/budget/templates/home.html
index 21de4f1..c956ee3 100644
--- a/budget/templates/home.html
+++ b/budget/templates/home.html
@@ -1,21 +1,25 @@
{% extends "layout.html" %}
+{% block sidebar %}
+{% include "recent_projects.html" %}
+{% endblock %}
+
{% block content %}
<h2>Welcome on the budget manager</h2>
-<div class="span-12 prepend-2 uniForm" >
- <form action="{{ url_for('authenticate') }}" method="post" style="width: 300px">
- <h3>Log to an existing project...</h3>
- {{ forms.authenticate(auth_form) }}
- </form>
- {% include "recent_projects.html" %}
-</div>
-
-<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 class="row">
+ <div class="span8 columns">
+ <form action="{{ url_for('authenticate') }}" method="post">
+ <h3>Log to an existing project...</h3>
+ {{ forms.authenticate(auth_form) }}
+ </form>
+ </div>
+ <div class="span8 columns">
+ <form action="{{ url_for('create_project') }}" method="post">
+ <h3>...or create a new one</h3>
+ {{ forms.create_project(project_form) }}</div>
+ </form>
+ </div>
</div>
{% endblock %}
diff --git a/budget/templates/recent_projects.html b/budget/templates/recent_projects.html
index 9769c59..91e1dd6 100644
--- a/budget/templates/recent_projects.html
+++ b/budget/templates/recent_projects.html
@@ -1,5 +1,5 @@
{% if 'projects' in session %}
- <h3>Recently visited projects</h3>
+ <h3>Your projects</h3>
<ul>
{% for id, name in session['projects'] %}
<li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li>