aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-08-09 23:49:09 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-08-09 23:49:44 +0200
commit04fa8d5b02a2429c03d8587f8d823f6abc168ae9 (patch)
treef8be5014f30aa203386edf300c78f0fff80f93cd /budget/templates
parent10642d9ad1b534078d2be1228101ad266b026c4d (diff)
downloadihatemoney-mirror-04fa8d5b02a2429c03d8587f8d823f6abc168ae9.zip
ihatemoney-mirror-04fa8d5b02a2429c03d8587f8d823f6abc168ae9.tar.gz
ihatemoney-mirror-04fa8d5b02a2429c03d8587f8d823f6abc168ae9.tar.bz2
Styling stuff. Fixes #9 (Adds a menu)
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/layout.html11
-rw-r--r--budget/templates/list_bills.html14
2 files changed, 14 insertions, 11 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 34e7f8b..19af8ca 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -8,13 +8,12 @@
<body>
<div class="container" class="span-24">
- <div id="title">
- <a href="/"><h1>Account manager ! <span class="small">Manage your shared expenses.</span></h1></a>
- <hr>
- <div class="fright" id="topmenu">
- {% block top_menu %}{% endblock %}
- </div>
+ <div id="title" class="span-20">
+ <a href="/"><h1>Account manager ! <span class="small">Manage your shared expenses.</span></h1></a></div>
+ <div class="span-4 last" id="topmenu">
+ {% block top_menu %}{% endblock %}
</div>
+ <hr>
{% for message in get_flashed_messages() %}
<div class=info>{{ message }}</div>
{% endfor %}
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 6c0ac59..ad6cee9 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -2,23 +2,27 @@
{% block top_menu %}
<ul>
- <li><a class="awesome button" href="{{ url_for('add_bill', project_id=project.id) }}">Add a bill</a></li>
+ <li><a href="{{ url_for("exit") }}">logout</a></li>
</ul>
{% endblock %}
{% block content %}
-<div id="leftmenu" class="span-4">
- <ul>
+<div id="leftmenu" class="span-6">
+ <ul class="members">
{% set balance = project.get_balance() %}
{% for member in project.active_members %}
- <li> {{ member.name }} {{ balance[member] }} <a href="{{ url_for("remove_member", project_id=project.id, member_id=member.id) }}">x</a></li>
+ <li class="{{ loop.cycle("even", "odd") }}">
+ <span class="balance {% if balance[member] < 0 %}positive{% elif balance[member] > 0 %}negative{% endif %}">{{ balance[member] }}</span>
+ {{ member.name }}
+ <a class="remove" href="{{ url_for("remove_member", project_id=project.id, member_id=member.id) }}">delete</a></li>
{% endfor %}
</ul>
<form action="{{ url_for("add_member", project_id=project.id) }}" method="post">
{{ forms.add_member(member_form) }}
</form>
</div>
-<div id="content" class="uniForm span-20 last">
+<div id="content" class="uniForm span-18 last">
+<a class="awesome button fright" href="{{ url_for('add_bill', project_id=project.id) }}">Add a bill</a>
<form id="add_bill" action="{{ url_for('add_bill', project_id=project.id) }}" method="post" style="width: 400px; display: none">
{{ forms.add_bill(bill_form) }}
</form>