93 lines
2.9 KiB
HTML
93 lines
2.9 KiB
HTML
{% load counter_tag %}
|
|
<a href="{% url 'newuserfirst' %}"class="btn btn-primary active" data-toggle="tooltip" data-placement="top" title="Fügen Sie hier einen weiteren Mitarbeiter Ihrer Agentur hinzu."><i class="fas fa-plus"></i> Mitarbeiter</a>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="table-responsive">
|
|
<table class="table hover" id="usertableall">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Vorname</th>
|
|
<th scope="col">Nachname</th>
|
|
<th scope="col">E-Mail</th>
|
|
<th scope="col">Agenturfunktion</th>
|
|
<th scope="col">Gleitzeit</th>
|
|
<th scope="col">Letzter Login</th>
|
|
<th scope="col">Tätigkeit</th>
|
|
<th scope="col">Telefon</th>
|
|
<th scope="col">Mobil</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tableresults">
|
|
{% for item in usersofagency %}
|
|
<tr>
|
|
<td><a href="{% url 'user_updateprofile' item.pk 0 %}">{{item.first_name }}</a></td>
|
|
<td><a href="{% url 'user_updateprofile' item.pk 0 %}">{{ item.last_name }}</a></td>
|
|
<td>{{ item.email }}</td>
|
|
<td>{% if item.profile.func == None %}-{%else%}{{ item.profile.func }}{%endif%}</td>
|
|
<td>
|
|
{% if item.usertime.usetime %}
|
|
{% loadaccounttime item as actualaccounttime %}
|
|
{% if actualaccounttime.1 == 0 %}
|
|
<b><span style="color: green">+{{actualaccounttime.0}}</span></b>
|
|
{% else %}
|
|
<b><span style="color: red">-{{actualaccounttime.0}}</span></b>
|
|
{% endif %}
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td>{% if item.last_login != Nonte %}{{ item.last_login }}{% endif %}</td>
|
|
<td>{{ item.profile.compfunc }}</td>
|
|
<td>{{ item.profile.phoneland }}</td>
|
|
<td>{{ item.profile.phonemobile }}</td>
|
|
<td>
|
|
{% if item != request.user %}
|
|
<a href="{% url 'users-delete' item.pk %}" ><button class="btn btn-sm btn-secondary"><i class="fas fa-trash"></i></button></a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<style>
|
|
/* DATATABLES */
|
|
.paginate_button {
|
|
padding: 0px !important;
|
|
border: 0px !important;
|
|
}
|
|
</style>
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#usertableall').DataTable({
|
|
"order" : [],
|
|
"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>
|