50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<div class="row col-12 mt-3" >
|
|
<div class="table-responsive">
|
|
<table class="table table-hover" id="table_userownab">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Start</th>
|
|
<th scope="col">Ende</th>
|
|
<th scope="col">Grund</th>
|
|
<th scope="col">Status</th>
|
|
<th scope="col">Begründung</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="">
|
|
{% for abday in userown %}
|
|
<tr>
|
|
<td>{{abday.start|date:"d.M Y"}}</td>
|
|
<td>{{abday.end|date:"d.M Y"}}</td>
|
|
<td>{{abday.reason.name}}</td>
|
|
<td>{% if abday.confirm_status == 0 %} Genehmigt {% elif abday.confirm_status == 1 %} Beantragt {% else %} Abgelehnt {% endif %}</td>
|
|
<td>{{abday.confirm_info}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
$('#table_userownab').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> |