| 1 |
|
| 2 |
{% load ratio_calculator %} |
| 3 |
<html> |
| 4 |
<h2>{% i18ncp "The total number of people displayed" "%n person" "%n people" contacts|length %}</h2> |
| 5 |
|
| 6 |
{% if contacts %} |
| 7 |
<table border="1" cellpadding="2"> |
| 8 |
<tr> |
| 9 |
<th>{% i18nc "The name of a person" "Name" %}</th> |
| 10 |
<th>{% i18n "Email" %}</th> |
| 11 |
<th>{% i18n "Birthday" %}</th> |
| 12 |
<th>{% i18n "Salary" %}</th> |
| 13 |
<th>{% i18n "Salary-age ratio" %}</th> |
| 14 |
</tr> |
| 15 |
{% for contact in contacts %} |
| 16 |
<tr> |
| 17 |
<td nowrap>{{ contact.name }}</td> |
| 18 |
<td>{{ contact.email }}</td> |
| 19 |
<td>{{ _(contact.birthday) }}</td> |
| 20 |
<td align="right" nowrap>{% l10n_money contact.salary contact.salaryCurrency %}</td> |
| 21 |
<td align="right" nowrap>{% get_ratio contact.birthday contact.rating as ratio %}{{ _(ratio) }}</td> |
| 22 |
</tr> |
| 23 |
{% endfor %} |
| 24 |
</table> |
| 25 |
{% endif %} |
| 26 |
|
| 27 |
</html> |