57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
{% load counter_tag %}
|
|
<div class="row col-12 mt-3" >
|
|
<div class="table-responsive">
|
|
<table class="table table-hover" id="table_toconfirmab">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Mitarbeiter</th>
|
|
<th scope="col">Start</th>
|
|
<th scope="col">Ende</th>
|
|
<th scope="col">Grund</th>
|
|
<th scope="col">Info</th>
|
|
<th scope="col">Status ändern</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="">
|
|
{% for abday in needtoconfirm %}
|
|
<tr>
|
|
<td>{{abday.user.first_name}} {{abday.user.last_name}}</td>
|
|
<td>{{abday.start|date:"d.M Y"}}</td>
|
|
<td>{{abday.end|date:"d.M Y"}}</td>
|
|
<td>{{abday.reason.name}}</td>
|
|
<td>{{abday.info}}</td>
|
|
<td>
|
|
<button type="button " class="btn btn-secondary btn-sm" onclick='javascript:openModalABChangeTable({{abday.pk}})'><i class="fas fa-eye"></i></button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
$('#table_toconfirmab').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"
|
|
},
|
|
},
|
|
"buttons" : {
|
|
"className" : "btn-danger"
|
|
}
|
|
});
|
|
|
|
});
|
|
</script> |