lingo/lingo/invoicing/templates/lingo/invoicing/manager_payer_list.html

55 lines
2.0 KiB
HTML

{% extends "lingo/invoicing/manager_regie_list.html" %}
{% load i18n %}
{% block page-title-extra-label %}{% trans "Payers" %}{% endblock %}
{% block breadcrumb %}
<a href="{% url 'lingo-manager-homepage' %}">{% trans "Payments" context 'lingo title' %}</a>
<a href="{% url 'lingo-manager-invoicing-regie-list' %}">{% trans "Regies" %}</a>
{% url 'lingo-manager-invoicing-payer-list' as object_list_url %}
<a href="{{ object_list_url }}">{% trans "Payers" %}</a>
{% include 'lingo/includes/application_breadcrumb_fragment.html' with title_no_application=_('Payers outside applications') %}
{% endblock %}
{% block appbar %}
{% include 'lingo/includes/application_appbar_fragment.html' with title_no_application=_('Payers outside applications') title_object_list=_('Payers') %}
{% endblock %}
{% block content %}
{% if object_list %}
<div>
<ul class="objects-list single-links">
{% for payer in object_list %}
<li>
<a href="{% url 'lingo-manager-invoicing-payer-detail' pk=payer.pk %}">
{% include 'lingo/includes/application_icon_fragment.html' with object=payer %}
{{ payer.label }}
<span class="extra-info"> [{% trans "identifier:" %} {{ payer.slug }}]</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% elif not no_application %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any payer yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
{% endblock %}
{% block sidebar %}
{% if not application and not no_application %}
<aside id="sidebar">
<h3>{% trans "Actions" %}</h3>
<a class="button button-paragraph" rel="popup" href="{% url 'lingo-manager-invoicing-payer-add' %}">{% trans 'New payer' %}</a>
{% include 'lingo/includes/application_list_fragment.html' with title_no_application=_('Payers outside applications') %}
</aside>
{% endif %}
{% endblock %}