{% extends "django_pettycash/dpc_base.html" %} {% load i18n %} {% block content %}

{% trans "Source list" %}

{% if perms.django_pettycash.add_source %} {% trans "Add" %} {% endif %}
{% if object_list %}
{% for s in object_list %} {% endfor %}
{% trans "Name" %} {% trans "Description" %} {% trans "Last balance" %} {% trans "Month" %} {% trans "Actions" %}
{{s.name}} {{s.description}} {{s.get_last_monthly_balance.end}} € {{s.get_last_monthly_balance.date|date:"F Y"}} {% if perms.django_pettycash.add_source or perms.django_pettycash.change_source or perms.django_pettycash.delete_source %} {% trans "View" %} {% endif %} {% if perms.django_pettycash.change_source %} {% trans "Edit" %} {% endif %} {% if perms.django_pettycash.delete_source %} {% trans "Delete" %} {% endif %}
{% else %}

{% trans "No sources" %}

{% endif %} {% endblock content %}