1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Add some tables for special transactions

This commit is contained in:
Yohann D'ANELLO
2020-03-23 22:43:16 +01:00
parent 2defb04d52
commit 95888ea316
5 changed files with 98 additions and 8 deletions

View File

@ -2,7 +2,9 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags pretty_money %}
{% load render_table from django_tables2 %}
{% block content %}
<p><a class="btn btn-default" href="{% url 'treasury:remittance_list' %}">{% trans "Remittances list" %}</a></p>
{% crispy form %}
{% render_table special_transactions %}
{% endblock %}

View File

@ -3,8 +3,23 @@
{% load i18n %}
{% block content %}
{% render_table table %}
<h2>{% trans "Opened remittances" %}</h2>
{% render_table opened_remittances %}
<a class="btn btn-primary" href="{% url 'treasury:remittance_create' %}">{% trans "New remittance" %}</a>
<a class="btn btn-primary" href="{% url 'treasury:remittance_create' %}">{% trans "New remittance" %}</a>
<hr>
<h2>{% trans "Transfers without remittances" %}</h2>
{% render_table special_transactions_no_remittance %}
<hr>
<h2>{% trans "Transfers with opened remittances" %}</h2>
{% render_table special_transactions_with_remittance %}
<hr>
<h2>{% trans "Closed remittances" %}</h2>
{% render_table closed_remittances %}
{% endblock %}