From 57358fd8a2f798ba901fc8c17fcd4d742c2c9944 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Mon, 18 Jan 2021 11:23:40 +0100 Subject: [PATCH] Zeiterfassung weiter gebaut, rdy fuer hochladen damit die Berechnung wieder passt --- dasettings/forms.py | 5 +- .../modulesettings_timemanagement.html | 2 + .../templates/dasettings/user_usprof.html | 26 ++- dasettings/views.py | 179 +++++++++++++++++- dump.rdb | Bin 29602 -> 42940 bytes .../standards/standards_management.html | 3 - .../__pycache__/counter_tag.cpython-38.pyc | Bin 22291 -> 22729 bytes standards/templatetags/counter_tag.py | 23 +++ timemanagement/models.py | 1 + .../timemanagement_singleview.html | 23 ++- .../timemanagement_teamview_single.html | 65 +++++-- users/signals.py | 3 +- .../templates/users/password_reset_mail.html | 2 +- users/urls.py | 2 +- users/views.py | 175 +---------------- 15 files changed, 314 insertions(+), 195 deletions(-) diff --git a/dasettings/forms.py b/dasettings/forms.py index cde0882..688d3e4 100644 --- a/dasettings/forms.py +++ b/dasettings/forms.py @@ -465,6 +465,7 @@ class AbsenceReasonForm(forms.ModelForm): "name" : "Bezeichnung", "need_confirm" : "Muss bestätigt werden", "need_rep" : "Muss vertreten werden", - "is_holiday" : "Geht vom Urlaub ab" + "is_holiday" : "Geht vom Urlaub ab", + "is_time" : "Geht vom Gleitzeitkonto ab" } - fields = ["name", "need_confirm", "need_rep", "is_holiday", "rgb_color"] + fields = ["name", "need_confirm", "need_rep", "is_holiday", "is_time", "rgb_color"] diff --git a/dasettings/templates/dasettings/modulesettings_timemanagement.html b/dasettings/templates/dasettings/modulesettings_timemanagement.html index 570c9e7..df4a99a 100644 --- a/dasettings/templates/dasettings/modulesettings_timemanagement.html +++ b/dasettings/templates/dasettings/modulesettings_timemanagement.html @@ -9,6 +9,7 @@ Bezeichnung Bestätigung Vertretung + Gleitzeit Urlaubstag Farbe   @@ -20,6 +21,7 @@ {{ab.name}} {% if ab.need_confirm %} {% else %} {% endif %} {% if ab.need_rep %} {% else %} {% endif %} + {% if ab.is_time %} {% endif %} {% if ab.is_holiday %} {% endif %} diff --git a/dasettings/templates/dasettings/user_usprof.html b/dasettings/templates/dasettings/user_usprof.html index b0bf7cf..2bc3663 100644 --- a/dasettings/templates/dasettings/user_usprof.html +++ b/dasettings/templates/dasettings/user_usprof.html @@ -223,7 +223,7 @@
Urlaub Jahresübersicht  - +
@@ -339,7 +339,6 @@ - - - + +