diff --git a/adm/templates/adm/adm_agency_single.html b/adm/templates/adm/adm_agency_single.html new file mode 100644 index 0000000..af3f635 --- /dev/null +++ b/adm/templates/adm/adm_agency_single.html @@ -0,0 +1,65 @@ +{% extends "adm/adm_base.html" %} +{% block content %} +{% load adm_tags %} +{% getAgencyData agency as agdata %} +
+

Einzelagenturansicht

+
+
Daten der Agentur
+ + + + + + + + + + + + + + + + + + + + +
Name{{agency.name}}
Registriert am{{agency.registerdate|date:"d.m.Y"}} +
Nutzer{{agdata.0}}
Standards{{agdata.1}}
Bezahlstatus{% if agency.paymentstatus == 0 %} Normal {% else %}Kostenlos{% endif %}
+
+
Rechnungen (letzten drei)
+{% if bills|length == 0 %} +Es liegen keine Rechnungen vor. +{% else %} + + + + + + + + + + {% for bill in bills %} + + + + + + {% endfor %} + +
Rechnungs-Nr.DatumStatus
{{bill.billnumber}}{{bill.billdate|date:"d.m.Y"}} + {% if bill.billstatus == "open" %} {% elif bill.billstatus == "paid" %} {% endif %} +
+{% endif %} +
+
Nutzerübersicht
+ + + + + +
+{% endblock content %} \ No newline at end of file diff --git a/adm/templates/adm/adm_agencys.html b/adm/templates/adm/adm_agencys.html index a602d77..da0e595 100644 --- a/adm/templates/adm/adm_agencys.html +++ b/adm/templates/adm/adm_agencys.html @@ -1,5 +1,6 @@ {% extends "adm/adm_base.html" %} {% block content %} +{% load adm_tags %}

Agenturübersicht


@@ -13,12 +14,11 @@ {% for ele in agencys %} + {% getAgencyData ele as agdata %} - {{ele.name}} - - - - + {{ele.name}} + {{agdata.0}} + {{agdata.1}} {% endfor %} diff --git a/adm/templates/adm/adm_base.html b/adm/templates/adm/adm_base.html index 0e2a530..2f61bb8 100644 --- a/adm/templates/adm/adm_base.html +++ b/adm/templates/adm/adm_base.html @@ -96,6 +96,14 @@ Agenturen + + + +