88 lines
3.7 KiB
HTML
88 lines
3.7 KiB
HTML
{% extends "lingo/invoicing/manager_regie_list.html" %}
|
|
{% load i18n gadjo %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'lingo-manager-invoicing-regie-detail' regie.pk %}">{{ regie }}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>{% trans 'Regie' %} - {{ regie }}</h2>
|
|
<span class="actions">
|
|
{% if not has_related_objects %}
|
|
<a href="{% url 'lingo-manager-invoicing-regie-delete' pk=regie.pk %}" rel="popup">{% trans "Delete" %}</a>
|
|
{% endif %}
|
|
<a href="{% url 'lingo-manager-invoicing-regie-edit' pk=regie.pk %}" rel="popup">{% trans "Edit" %}</a>
|
|
<a href="{% url 'lingo-manager-invoicing-non-invoiced-line-list' regie_pk=regie.pk %}">{% trans 'Non invoiced lines' %}</a>
|
|
<a href="{% url 'lingo-manager-invoicing-regie-invoice-list' regie_pk=regie.pk %}">{% trans 'Invoices' %}</a>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="section">
|
|
<div class="pk-tabs">
|
|
<div class="pk-tabs--tab-list" role="tablist">
|
|
<button aria-controls="panel-settings" aria-selected="true" id="tab-settings" role="tab" tabindex="0">{% trans "Settings" %}</button>
|
|
<button aria-controls="panel-usage" aria-selected="false" id="tab-usage" role="tab" tabindex="-1">{% trans "Used in agendas" %}</button>
|
|
<button aria-controls="panel-campaigns" aria-selected="false" id="tab-campaigns" role="tab" tabindex="-1">{% trans "Campaigns" %}</button>
|
|
</div>
|
|
<div class="pk-tabs--container">
|
|
|
|
<div aria-labelledby="tab-settings" id="panel-settings" role="tabpanel" tabindex="0">
|
|
{% if regie.description %}
|
|
<h3>{% trans "Description" %}</h3>
|
|
<p>{{ regie.description|linebreaksbr }}</p>
|
|
{% endif %}
|
|
<h3>{% trans "Parameters" %}</h3>
|
|
<ul>
|
|
<li>{% trans "Identifier:" %} {{ regie.slug }}</li>
|
|
<li>{% trans "Cashier role:" %} {{ regie.cashier_role|default:'' }}</li>
|
|
<li>{% trans "Counter name:" %} <code>{{ regie.counter_name }}</code></li>
|
|
<li>{% trans "Number format:" %} <code>{{ regie.number_format }}</code></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-usage" hidden="" id="panel-usage" role="tabpanel" tabindex="0">
|
|
{% if agendas %}
|
|
<ul class="objects-list single-links">
|
|
{% for agenda in agendas %}
|
|
<li>
|
|
<a href="{% url 'lingo-manager-agenda-detail' pk=agenda.pk %}">
|
|
{{ agenda.label }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans trimmed %}
|
|
This Regie is not used yet.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div aria-labelledby="tab-campaigns" hidden="" id="panel-campaigns" role="tabpanel" tabindex="0">
|
|
<ul class="objects-list single-links">
|
|
{% for campaign in campaigns %}
|
|
<li>
|
|
<a href="{% url 'lingo-manager-invoicing-campaign-detail' regie_pk=regie.pk pk=campaign.pk %}">
|
|
{{ campaign }}
|
|
<span class="extra-info"> [{% trans "issue date:" %} {{ campaign.date_issue|date:'d/m/Y' }}]</span>
|
|
{% if campaign.finalized %}
|
|
<span class="badge">{% trans "finalized" %}</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<div class="panel--buttons">
|
|
<a class="pk-button" href="{% url 'lingo-manager-invoicing-campaign-add' regie_pk=regie.pk %}">{% trans "New campaign" %}</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|