From 5bac1eeaafdecb3fcf010e1ec5c39398ba851686 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Sun, 28 Mar 2021 14:16:59 +0200 Subject: [PATCH] Icons und Zeiterfassung Pausen und AutoBuchung --- .../timemanagement_singleview.html | 42 +++++++++++++------ .../timemanagement_teamview_single.html | 40 +++++++++++++----- users/templates/users/base.html | 2 +- 3 files changed, 60 insertions(+), 24 deletions(-) diff --git a/timemanagement/templates/timemanagement/timemanagement_singleview.html b/timemanagement/templates/timemanagement/timemanagement_singleview.html index d4b7392..58cc887 100644 --- a/timemanagement/templates/timemanagement/timemanagement_singleview.html +++ b/timemanagement/templates/timemanagement/timemanagement_singleview.html @@ -23,12 +23,12 @@ - Start - Ende - Arbeitszeit - Pausen - Gesamtzeit - Gleitzeit +  Start +  Ende +  Arbeitszeit +  Pausen +  Gesamtzeit +  Gleitzeit   @@ -214,7 +214,12 @@ {% counterWDUp %} - {{workday.start|date:"H:i"}} + + {% if workday.start == workday.end %} + Nichts gebucht + {% else %} + {{workday.start|date:"H:i"}} + {% endif %} {% endif %} {% endfor %} {% endif %} @@ -235,8 +240,10 @@ {% counterWDUp %} - - {{workday.end|date:"H:i"}} + {% if workday.start != workday.end %} + {{workday.end|date:"H:i"}} + {% endif %} + {% endif %} {% endfor %} @@ -252,7 +259,9 @@
{% endif %} {% counterWDUp %} - {% getsumworkday workday as sumwd %} + {% if workday.start != workday.end %} + {% getsumworkday workday as sumwd %} + {% endif %} {{sumwd}} {% endif %} {% endfor %} @@ -272,7 +281,13 @@ {% counterWDUp %} {% getsumbreak workday as sumbreakofday %} - {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% if workday.start != workday.end %} + {% if workday.breaks.all|length > 0 %} + {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% else %} + Keine Pausen + {% endif %} + {% endif %} {% endif %} {% endfor %} @@ -292,7 +307,10 @@ {% counterWDUp %} {% getsumworkdayexcludebreak workday as sumworkday %} - {{ sumworkday }} + {% if workday.start != workday.end %} + {{ sumworkday }} + {% endif %} + {% endif %} {% endfor %} diff --git a/timemanagement/templates/timemanagement/timemanagement_teamview_single.html b/timemanagement/templates/timemanagement/timemanagement_teamview_single.html index 3310ab2..cf49cf0 100644 --- a/timemanagement/templates/timemanagement/timemanagement_teamview_single.html +++ b/timemanagement/templates/timemanagement/timemanagement_teamview_single.html @@ -29,12 +29,12 @@ - Start - Ende - Arbeitszeit - Pausen - Gesamtzeit - Gleitzeit +  Start +  Ende +  Arbeitszeit +  Pausen +  Gesamtzeit +  Gleitzeit   @@ -211,7 +211,11 @@ {% counterWDUp %} - {{workday.start|date:"H:i"}} + {% if workday.start == workday.end %} + Nichts gebucht + {% else %} + {{workday.start|date:"H:i"}} + {% endif %} {% endif %} {% endfor %} {% endif %} @@ -228,7 +232,10 @@
{% endif %} {% counterWDUp %} - {{workday.end|date:"H:i"}} + {% if workday.start != workday.end %} + {{workday.end|date:"H:i"}} + {% endif %} + {% endif %} {% endfor %} @@ -242,7 +249,9 @@
{% endif %} {% counterWDUp %} - {% getsumworkday workday as sumwd %} + {% if workday.start != workday.end %} + {% getsumworkday workday as sumwd %} + {% endif %} {{sumwd}} {% endif %} {% endfor %} @@ -258,7 +267,14 @@ {% endif %} {% counterWDUp %} {% getsumbreak workday as sumbreakofday %} - {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% if workday.start != workday.end %} + {% if workday.breaks.all|length > 0 %} + {{sumbreakofday}} min. ({{workday.breaks.all|length}}) + {% else %} + Keine Pausen + {% endif %} + {% endif %} + {% endif %} {% endfor %} @@ -273,7 +289,9 @@ {% endif %} {% counterWDUp %} {% getsumworkdayexcludebreak workday as sumworkday %} - {{ sumworkday }} + {% if workday.start != workday.end %} + {{ sumworkday }} + {% endif %} {% endif %} {% endfor %} diff --git a/users/templates/users/base.html b/users/templates/users/base.html index 4a78fbb..043b5f1 100644 --- a/users/templates/users/base.html +++ b/users/templates/users/base.html @@ -356,7 +356,7 @@ Impressum

- Version 1.0.5 + Version 1.0.7