diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 01:05:25 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 01:05:25 +0200 |
| commit | 98f9d96a27692632be9b3e90711ff0110d9eb054 (patch) | |
| tree | 30237858185251e204f7d7e6a7d56a2cbe271045 /budget/templates | |
| parent | 5c44e495b7e861b642b1c7aec443e2795fd80600 (diff) | |
| download | ihatemoney-mirror-98f9d96a27692632be9b3e90711ff0110d9eb054.zip ihatemoney-mirror-98f9d96a27692632be9b3e90711ff0110d9eb054.tar.gz ihatemoney-mirror-98f9d96a27692632be9b3e90711ff0110d9eb054.tar.bz2 | |
Fixes various typos.
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/compute_bills.html | 31 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 5 |
2 files changed, 1 insertions, 35 deletions
diff --git a/budget/templates/compute_bills.html b/budget/templates/compute_bills.html deleted file mode 100644 index 4c6fd56..0000000 --- a/budget/templates/compute_bills.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "layout.html" %} - -{% block top_menu %} -<a href="{{ url_for('list_bills', project_id=project.id) }}">Back to the list</a> -{% endblock %} - -{% block content %} -<h2>Computations</h2> - -<div class="container span-16"> - <ol> - <li>For each person, get the list of bills he have to pay</li> - <li>Increase the amount this person have to pay</li> - <li>At the same time, increase what the payer of the bill have to receive</li> - <li>At the end, for each person, substract what he have to pay to what he have to receive</li> - </ol> -</div> - -<div class="container span-6 last"> - <a class="awesome large green button" onclick = "if (! confirm('Are you sure ?')) return false;" href="">Mark this as payed / processed</a> -</div> - -<table> - <thead><tr><th>Name</th><th>Balance</th></tr></thead> - <tbody> -{% for person, balance in balances.items() %} - <tr><td>{{ person.name }}</td><td>{{ balance }}</td></tr> -{% endfor %} - </tbody> -</table> -{% endblock %} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index ad6cee9..76a7701 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -12,7 +12,7 @@ {% set balance = project.get_balance() %} {% for member in project.active_members %} <li class="{{ loop.cycle("even", "odd") }}"> - <span class="balance {% if balance[member] < 0 %}positive{% elif balance[member] > 0 %}negative{% endif %}">{{ balance[member] }}</span> + <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 %} @@ -44,9 +44,6 @@ </tbody> </table> - <a class="awesome large green button fleft" href="{{ url_for("compute_bills", project_id=project.id) }}">Compute bills</a> - <p> Periodically (probably at the end of each month, you can compute the balance of each people, in order to reset all the debts. You can also let this "as-is" and try to find a good balance, that's up to you</p> - {% else %} <p>Nothing to list yet. You probably want to <a href="{{ url_for("add_bill", project_id=project.id) }}">add a bill</a> ?</p> {% endif %} |
