67 lines
1.5 KiB
HTML
67 lines
1.5 KiB
HTML
{% extends "adm/adm_base.html" %}
|
|
{% block content %}
|
|
{% load adm_tags %}
|
|
<div class="content-section col-12">
|
|
<h4>Agenturübersicht</h4>
|
|
{% loadAboCount as abocount %}
|
|
<small>Aktive Abos: {{abocount}}</small>
|
|
<hr>
|
|
<table class="table table-hover" id="agdata" >
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Agenturname</th>
|
|
<th scope="col">Registriert am</th>
|
|
<th scope="col">Mitarbeiter</th>
|
|
<th scope="col">Standards</th>
|
|
<th scope="col">Abo</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
{% for ele in agencys %}
|
|
{% getAgencyData ele as agdata %}
|
|
<tr>
|
|
<td><a href="{% url 'adm-agency-single' ele.pk %}">{{ele.name}}</a></td>
|
|
<td>{{ele.registerdate}}</td>
|
|
<td>{{agdata.0}}</td>
|
|
<td>{{agdata.1}}</td>
|
|
<td>
|
|
{% if ele.paymentplan == 1 %}
|
|
Aktiv
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('#agdata').DataTable({
|
|
"language": {
|
|
"search" : "Suche",
|
|
"info": "Zeige _START_ bis _END_ von _TOTAL_ Einträgen",
|
|
"lengthMenu": "Zeige _MENU_ Einträge",
|
|
"zeroRecords": "Nichts gefunden",
|
|
"infoEmpty": "Keine Einträge",
|
|
"paginate": {
|
|
"first": "Erste",
|
|
"last": "Letzte",
|
|
"next": "Nächste",
|
|
"previous": "Zurück"
|
|
},
|
|
},
|
|
"pageLength": 50,
|
|
"buttons" : {
|
|
"className" : "btn-danger"
|
|
}
|
|
});
|
|
})
|
|
</script>
|
|
<!--
|
|
|
|
TASK: Quota-Ansicht hier mit einbauen
|
|
|
|
-->
|
|
{% endblock content %} |