58 lines
1.7 KiB
HTML
58 lines
1.7 KiB
HTML
{% extends "adm/adm_base.html" %}
|
|
{% block content %}
|
|
{% load adm_tags %}
|
|
{% load mathfilters %}
|
|
{% load humanize %}
|
|
{% load counter_tag %}
|
|
<div class="content-section col-12">
|
|
<h4>Übersicht Arbeitstag und Abwesenheit
|
|
</h4>
|
|
<table class="table table-striped" id="wdabdays">
|
|
<thead>
|
|
<trd>
|
|
<td>Name</td>
|
|
<td>Relevante Arbeitstage OHNE FLAG</td>
|
|
<td>Relevante Arbeitstage MIT FLAG</td>
|
|
</trd>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in users %}
|
|
{% getADMAbsenceWorkdays user as workdays %}
|
|
{% getADMAbsenceWorkdaysTrue user as workdaystrue %}
|
|
<tr>
|
|
<td>{{user.username}}</td>
|
|
<td>
|
|
{% for wd in workdays %} <a href="{% url 'adm-workday-update' wd.pk %}">{{wd.pk}}</a>, {% endfor %}
|
|
</td>
|
|
<td>
|
|
{% for wd in workdaystrue %} <a href="{% url 'adm-workday-update' wd.pk %}">{{wd.pk}}</a>, {% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('#wdabdays').DataTable({
|
|
order: [0, '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>
|
|
{% endblock content %} |