Recht umgebaut
This commit is contained in:
parent
8ada632aca
commit
8d14ad4b34
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "adm/adm_base.html" %}
|
||||
{% block content %}
|
||||
{% load adm_tags %}
|
||||
<!-- Mitarbeier ist immer der angemeledete!!! -->
|
||||
<div class="content-section col-12">
|
||||
<h4>{{user.get_full_name}} aus {{user.profile.agency.name}}</h4>
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{% load counter_tag %}
|
||||
<!--
|
||||
|
||||
TASK:
|
||||
-->
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover" id="usertableall">
|
||||
<thead>
|
||||
|
|
@ -14,7 +18,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableresults">
|
||||
{% for item in usersofagency %}
|
||||
{% for item in usersofagencytm %}
|
||||
<tr>
|
||||
<td>{{item.first_name }}</td>
|
||||
<td>{{ item.last_name }}</td>
|
||||
|
|
|
|||
|
|
@ -402,9 +402,8 @@ def TimeManagement(request, activemonth=False, activeyear=False):
|
|||
"workdays" : Workday.objects.filter(agency=request.user.profile.agency, user=request.user, start__month=activemonth, start__year=active_year).order_by("start").exclude(end=None),
|
||||
"userhasworkdays" : user_has_workdays
|
||||
}
|
||||
|
||||
if(request.user.has_perm("users.usersmanager")):
|
||||
context.update({"usersofagency" : User.objects.filter(profile__agency=request.user.profile.agency).order_by('last_name')})
|
||||
#if(request.user.has_perm("users.usersmanager")):
|
||||
context.update({"usersofagencytm" : User.objects.filter(profile__agency=request.user.profile.agency).order_by('last_name')})
|
||||
|
||||
return render(request, 'timemanagement/timemanagement_management.html', context)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue