diff --git a/.gitignore b/.gitignore index 7d9d49e..1dbb8ac 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,10 @@ standards/migrations/* !standards/migrations/__init__.py standards/__pycache__/* +recoverdir/migrations/* +!recoverdir/migrations/__init__.py +recoverdir/__pycache__/* + api/migrations/* !api/migrations/__init__.py api/__pycache__/* diff --git a/dasettings/templates/dasettings/calc_content.html b/dasettings/templates/dasettings/calc_content.html index ec6991c..716ece1 100644 --- a/dasettings/templates/dasettings/calc_content.html +++ b/dasettings/templates/dasettings/calc_content.html @@ -10,7 +10,7 @@
Ihr Betrag
-

Ihr monatlicher Nutzungsbeitrag setzt sich wie folgt zusammen:

+

Ihr monatlicher Nutzungsbetrag setzt sich wie folgt zusammen:

@@ -24,9 +24,9 @@ - - - + + + {% loadFinalMoney user as fm %} diff --git a/dasettings/templates/dasettings/groups_content.html b/dasettings/templates/dasettings/groups_content.html index 905667c..ae87434 100644 --- a/dasettings/templates/dasettings/groups_content.html +++ b/dasettings/templates/dasettings/groups_content.html @@ -31,13 +31,15 @@ {% endif %} - +
Gruppenrechte{% if request.user.profile.showtooltips %} {% endif %}
+ {% if aggroup.agencygroupname != "Notfallordner" %}
- {% for perm in perms %} + {% for perm in perms %} + {% if perm.help_text != "Notfallordner verwalten" %} {% if forloop.counter|divisibleby:8 %}
@@ -46,15 +48,20 @@
{% else %} -
+
{% endif %} + {% endif %} {% endfor %}

+ {% else %} + Der Notfallordner ist für keine weiteren Rechte konfigurierbar. +
+ {% endif %}
Mitarbeiter zur Gruppe {{aggroup.agencygroupname}} hinzufügen
@@ -98,10 +105,17 @@
-{% if forloop.counter == 2 %} -
-{% endif %} +{% if request.user.profile.agency.module_recoverdir %} + {% if forloop.counter == 3 %} +
+ {% endif %} + {% else %} + + {% if forloop.counter == 2 %} +
+ {% endif %} +{% endif %} {% endfor %}
diff --git a/dasettings/views.py b/dasettings/views.py index 2777c0e..081f08c 100644 --- a/dasettings/views.py +++ b/dasettings/views.py @@ -163,7 +163,11 @@ def DASettings(request): context.update({"agencyjobs" : AgencyJob.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("name")}) # LOAD GROUPS - agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel") + if request.user.profile.agency.module_recoverdir: + agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel") + else: + agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel").exclude(agencygroupname="Notfallordner") + context.update({"agencygroups" : agencygroups}) # LOAD AREAS diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 1699903..230c68c 100644 Binary files a/digitaleagentur/__pycache__/settings.cpython-38.pyc and b/digitaleagentur/__pycache__/settings.cpython-38.pyc differ diff --git a/digitaleagentur/__pycache__/urls.cpython-38.pyc b/digitaleagentur/__pycache__/urls.cpython-38.pyc index 40a2636..6ac02f8 100644 Binary files a/digitaleagentur/__pycache__/urls.cpython-38.pyc and b/digitaleagentur/__pycache__/urls.cpython-38.pyc differ diff --git a/digitaleagentur/settings.py b/digitaleagentur/settings.py index 9517db9..bb6575f 100644 --- a/digitaleagentur/settings.py +++ b/digitaleagentur/settings.py @@ -62,6 +62,7 @@ INSTALLED_APPS = [ 'organizer.apps.OrganizerConfig', 'standards.apps.StandardsConfig', 'timemanagement.apps.TimemanagementConfig', + 'recoverdir.apps.RecoverdirConfig', 'news.apps.NewsConfig', 'crispy_forms', 'colorful', diff --git a/digitaleagentur/urls.py b/digitaleagentur/urls.py index 4dc132f..65b6711 100644 --- a/digitaleagentur/urls.py +++ b/digitaleagentur/urls.py @@ -20,6 +20,7 @@ urlpatterns = [ path('organizer/', include('organizer.urls'), name="ql-management"), path('cloud/', include('cloud.urls'), name="cloud-main"), path('standards/', include('standards.urls'), name="standards"), + path('rd/', include('recoverdir.urls'), name="recoverdir"), path('news/', include('news.urls'), name="dashboard"), path('orga/', include('orga.urls'), name="orga"), path('password-reset/', auth_views.PasswordResetView.as_view(template_name='users/password_reset.html', html_email_template_name='users/password_reset_mail.html'), name='password-reset'), diff --git a/organizer/templates/organizer/organizer_management.html b/organizer/templates/organizer/organizer_management.html index d4c8762..0e0878c 100644 --- a/organizer/templates/organizer/organizer_management.html +++ b/organizer/templates/organizer/organizer_management.html @@ -24,8 +24,6 @@
- -
Grundbetrag (inkl. 3 Nutzer)21,00 €Gesetzliche MwSt. (16%){{mwst|floatformat:2|intcomma}} €
 

Monatlicher Bruttobetrag{{fm|floatformat:2|intcomma}} €