aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2013-01-10 15:11:56 -0800
committerAlexis Metaireau <alexis@notmyidea.org>2013-01-10 15:11:56 -0800
commit64385e0fa3139d7392f107c69267e977f72a4d46 (patch)
tree674cc80111db5b92854872c32e0a7815c1ae8871 /budget/templates
parent800dcba2c8b26d09c19074d8604c4577d4774600 (diff)
parent8b114c5718e332553a3bb9718c707365f7ab5a0a (diff)
downloadihatemoney-mirror-64385e0fa3139d7392f107c69267e977f72a4d46.zip
ihatemoney-mirror-64385e0fa3139d7392f107c69267e977f72a4d46.tar.gz
ihatemoney-mirror-64385e0fa3139d7392f107c69267e977f72a4d46.tar.bz2
Merge pull request #97 from aavenel/cosmetics
Small changes for UI
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/dashboard.html27
-rw-r--r--budget/templates/forms.html1
2 files changed, 15 insertions, 13 deletions
diff --git a/budget/templates/dashboard.html b/budget/templates/dashboard.html
index e9c92dd..3f50915 100644
--- a/budget/templates/dashboard.html
+++ b/budget/templates/dashboard.html
@@ -1,20 +1,21 @@
{% extends "layout.html" %}
{% block content %}
-<table id="bill_table" class="list_bills common-table zebra-striped">
+<table id="bill_table" class="table table-striped">
<thead><tr><th>{{ _("Project") }}</th><th>{{ _("Number of members") }}</th><th>{{ _("Number of bills") }}</th><th>{{_("Newest bill")}}</th><th>{{_("Oldest bill")}}</th></tr></thead>
- <tbody>{% for project in projects %}
- <tr>
-<td>{{ project.name }}</td><td>{{ project.members | count }}</td><td>{{ project.get_bills().count() }}</td>
-{% if project.has_bills() %}
-<td>{{ project.get_bills().all()[0].date }}</td>
-<td>{{ project.get_bills().all()[-1].date }}</td>
-{% else %}
-<td></td>
-<td></td>
-{% endif %}
-</tr>
- {% endfor %}</tbody>
+ <tbody>{% for project in projects|sort(attribute='name') %}
+ <tr class="{{ loop.cycle("odd", "even") }}">
+ <td>{{ project.name }}</td><td>{{ project.members | count }}</td><td>{{ project.get_bills().count() }}</td>
+ {% if project.has_bills() %}
+ <td>{{ project.get_bills().all()[0].date }}</td>
+ <td>{{ project.get_bills().all()[-1].date }}</td>
+ {% else %}
+ <td></td>
+ <td></td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </tbody>
</table>
{% endblock %}
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index 8d15cb8..2904e0d 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -108,6 +108,7 @@
<fieldset>
<legend>{{ _("Create an archive") }}</legend>
{{ form.hidden_tag() }}
+ {{ input(form.name) }}
{{ input(form.start_date) }}
{{ input(form.end_date) }}
</fieldset>