From 0c946831116e0663e7867dc9ff254dbd448c8ab9 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Fri, 29 Jan 2021 10:33:45 +0100 Subject: [PATCH] =?UTF-8?q?Organigramml=C3=B6schfehler=20behoben=20bzw=20d?= =?UTF-8?q?er=20Nutzer=20wird=20informiert,=20was=20er=20tun=20muss=20um?= =?UTF-8?q?=20den=20User=20l=C3=B6schen=20zu=20k=C3=B6nnen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__pycache__/counter_tag.cpython-38.pyc | Bin 23275 -> 23275 bytes standards/templatetags/counter_tag.py | 4 + .../timemanagement_singleview.html | 265 ++++++++---------- .../timemanagement_teamview_single.html | 161 +++++------ users/templates/users/base.html | 2 +- .../templates/users/user_confirm_delete.html | 22 +- users/views.py | 20 +- 7 files changed, 233 insertions(+), 241 deletions(-) diff --git a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc index ea266a4f7a436a649b88301ab4508dc989bd4205..b53cf1205d178f78db2c8ae32076850c0c9b770d 100644 GIT binary patch delta 163 zcmaF8mGSjfM&3|fUM>b8P`E6dV7`&JF_`hzcdooByP!Dz{tR$$yy`~ rw5BL`vRha%W69=OVSAXwvVjssc_1PmL==ID62{2^?Bbi7BQqEQcGNIv delta 150 zcmaF8mGSjfM&3|fUM>b8aGETXV7!sHF_ +
- - - - {% loadmonthwork next_month user as monthwork %} - - - Gesamtarbeitszeit dieser Monat: {{monthwork}} Stunden
- {% loadaccounttime user as actualaccounttime %} - Gleitzeitkonto: - {% if actualaccounttime.1 == 0 %} - +{{actualaccounttime.0}} Stunden - {% else %} - -{{actualaccounttime.0}} Stunden - {% endif %} -
+ + {% loadmonthwork next_month user as monthwork %} + Gesamtarbeitszeit dieser Monat: {{monthwork}} Stunden
+ {% loadaccounttime user as actualaccounttime %} + Gleitzeitkonto: + {% if actualaccounttime.1 == 0 %} + +{{actualaccounttime.0}} Stunden + {% else %} + -{{actualaccounttime.0}} Stunden + {% endif %} +
@@ -31,9 +27,9 @@ Start Ende - Gesamtzeit - Pausen Arbeitszeit + Pausen + Gesamtzeit Gleitzeit   @@ -41,9 +37,7 @@ {% for da in days_this_month %} - - {% getabscenceday request.user request.user da as abday %} - + {% getabscenceday request.user request.user da as abday %} + {{da|date:"l"}} + {{da|date:"d.m.y"}} + {% if abday != False %} {{abday.reason}} @@ -218,7 +215,8 @@ {% endif %} {% if abday == False %} - + + {% counterWDreset %} {% for workday in workdays %} {% if workday.end|date:"d-m-y" == da|date:"d-m-y" %} @@ -235,8 +233,44 @@ {{workday.end|date:"H:i"}} {% endif %} {% endfor %} - + + + {% counterWDreset %} + {% for workday in workdays %} + {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} + + {% getCounterWD as wd_counter %} + + {% if wd_counter > 0 %} +
+ {% endif %} + {% counterWDUp %} + {% getsumworkday workday as sumwd %} + {{sumwd}} + {% endif %} + {% endfor %} + + + + {% counterWDreset %} + {% for workday in workdays %} + {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} + + {% getCounterWD as wd_counter %} + + {% if wd_counter > 0 %} +
+ {% endif %} + + {% counterWDUp %} + + {% getsumbreak workday as sumbreakofday %} + {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% endif %} + {% endfor %} + + {% counterWDreset %} {% for workday in workdays %} @@ -255,146 +289,91 @@ {{ sumworkday }} {% endif %} {% endfor %} - + - {% counterWDreset %} + {% counterWDreset %} {% for workday in workdays %} {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} - {% getCounterWD as wd_counter %} + {% getCounterWD as wd_counter %} - {% if wd_counter > 0 %} -
- {% endif %} - - {% counterWDUp %} - - {% getsumbreak workday as sumbreakofday %} - {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% if wd_counter > 0 %} +
+ {% endif %} + {% counterWDUp %} + {% gettimeoveralldiff workday user as erg%} + {% if erg.1 == 0 %} + +{{erg.0}} + {% elif erg.1 == 1 %} + {{erg.0}} + {% else %} + -{{erg.0}} + {% endif %} {% endif %} {% endfor %} - - - - - {% counterWDreset %} - {% for workday in workdays %} - {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} - - {% getCounterWD as wd_counter %} - - {% if wd_counter > 0 %} -
- {% endif %} - - - {% counterWDUp %} - - {% getsumworkday workday as sumwd %} - {{sumwd}} - {% endif %} - {% endfor %} - - - - - {% counterWDreset %} - {% for workday in workdays %} - {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} - - {% getCounterWD as wd_counter %} - - {% if wd_counter > 0 %} -
- {% endif %} - {% counterWDUp %} - {% gettimeoveralldiff workday user as erg%} - {% if erg.1 == 0 %} - +{{erg.0}} - {% elif erg.1 == 1 %} - {{erg.0}} - {% else %} - -{{erg.0}} - {% endif %} - {% endif %} - {% endfor %} - + - {% counterWDreset %} - {% for workday in workdays %} - {% if workday.start|date:"d-m-y" == da|date:"d-m-y" %} - - {% getCounterWD as wd_counter %} - - {% if wd_counter > 0 %} -
- {% endif %} - - - {% counterWDUp %} - - {% getWorkDayHistory workday as wd_history %} - - {% if wd_history.history_user != None %} - - -