58 lines
2.0 KiB
HTML
58 lines
2.0 KiB
HTML
{% extends "adm/adm_base.html" %}
|
|
{% block content %}
|
|
{% load adm_tags %}
|
|
<div class="content-section col-12">
|
|
<h4>Agenturimport</h4>
|
|
<small>Agenturen können hier importiert werden und erhalten einen detallierten Bericht. Bereits importierte Agenturen speichern ihre MainGroupID in Nextcloud</small>
|
|
<hr>
|
|
<table class="table table-hover" id="agdata" >
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Agenturname</th>
|
|
<th scope="col">Importierstatus</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
{% for ele in agencys %}
|
|
<tr>
|
|
<td><a href="{% url 'adm-agency-single' ele.pk %}">{{ele.name}}</a></td>
|
|
<td></td>
|
|
<td>
|
|
{% if ele.importid|length == 0 %}
|
|
<a href="{% url 'adm-import-flow' ele.pk %}" class="btn btn-danger btn-sm">Agentur jetzt zu Nextcloud migrieren</a>
|
|
{% else %}
|
|
Agentur importiert
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('#agdata').DataTable({
|
|
order: [1, 'desc'],
|
|
"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>
|
|
</div>
|
|
{% endblock content %} |