diff --git a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc index ea266a4..b53cf12 100644 Binary files a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc and b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc differ diff --git a/standards/templatetags/counter_tag.py b/standards/templatetags/counter_tag.py index 04d9fdd..cbad929 100644 --- a/standards/templatetags/counter_tag.py +++ b/standards/templatetags/counter_tag.py @@ -1039,3 +1039,7 @@ def getBaseURLIcsExAll(agency): + + + + diff --git a/timemanagement/templates/timemanagement/timemanagement_singleview.html b/timemanagement/templates/timemanagement/timemanagement_singleview.html index 0db1cd7..b3e4a52 100644 --- a/timemanagement/templates/timemanagement/timemanagement_singleview.html +++ b/timemanagement/templates/timemanagement/timemanagement_singleview.html @@ -1,24 +1,20 @@ {% load counter_tag %} -
+
- - - - {% 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 %} - - -