41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
{% extends "lingo/invoicing/manager_campaign_detail.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'lingo-manager-invoicing-pool-detail' pk=object.pk pool_pk=pool.pk %}">{% trans "Pool" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2 id="pool-title">
|
|
{% if pool.success_count %}<span class="tag tag-success">{{ pool.success_count }}</span>{% endif %}
|
|
{% if pool.warning_count %}<span class="tag tag-warning">{{ pool.warning_count }}</span>{% endif %}
|
|
{% if pool.error_count %}<span class="tag tag-error">{{ pool.error_count }}</span>{% endif %}
|
|
{{ pool.created_at|date:"DATETIME_FORMAT" }}
|
|
</h2>
|
|
<span class="actions">
|
|
<a href="{% url 'lingo-manager-invoicing-pool-journal' pk=object.pk pool_pk=pool.pk %}">{% trans "Journal" %}</a>
|
|
{% if pool.draft and pool.status != 'registered' and pool.status != 'running' %}
|
|
<a href="{% url 'lingo-manager-invoicing-pool-delete' pk=object.pk pool_pk=pool.pk %}" rel="popup">{% trans "Delete" %}</a>
|
|
{% endif %}
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
{% for line in lines %}
|
|
{% ifchanged line.invoice_id %}
|
|
{% if not forloop.first %}</ul>{% endif %}
|
|
<h3 data-invoice-id="{{ line.invoice_id }}">
|
|
{% blocktrans with number=line.invoice_id payer=line.invoice.payer amount=line.invoice.total_amount %}Invoice #{{ number }} addressed to {{ payer }}, amount {{ amount }}€{% endblocktrans %}
|
|
</h3>
|
|
<ul class="objects-list" data-invoice-id="{{ line.invoice_id }}">
|
|
{% endifchanged %}
|
|
<li>
|
|
#{{ line.pk }} {{ line.user_name }} - {{ line.event_date|date:"d/m/Y" }} - {{ line.label }} ({{ line.total_amount }})
|
|
</li>
|
|
{% if forloop.last %}</ul>{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|