From f52d1d64e476177db31271eade447eda51e238cb Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Sun, 26 Apr 2020 01:30:04 +0200 Subject: [PATCH] Zwischencommit Vertragsdaten und Kleinkrams --- dasettings/forms.py | 11 +- .../templates/dasettings/agency_content.html | 2 +- .../modulesettings_organigramm.html | 19 ++ .../templates/dasettings/moduls_content.html | 40 ++- .../dasettings/structure_content.html | 2 +- .../templates/dasettings/user_usprof.html | 253 ++++++++++++------ dasettings/urls.py | 1 + dasettings/views.py | 64 ++++- .../__pycache__/settings.cpython-38.pyc | Bin 3921 -> 3921 bytes .../__pycache__/urls.cpython-38.pyc | Bin 2228 -> 2227 bytes digitaleagentur/urls.py | 6 +- media/default.jpg | Bin 6068 -> 1938 bytes message/templates/message/message.html | 5 +- orga/__pycache__/views.cpython-38.pyc | Bin 2334 -> 2344 bytes orga/templates/orga/orga_single.html | 2 +- orga/views.py | 12 +- standards/models.py | 5 +- .../templates/standards/standard_area.html | 2 +- .../templates/standards/standard_task.html | 2 +- .../standards/standards_management.html | 7 +- .../standards/standards_single_agn.html | 2 +- standards/urls.py | 2 +- standards/views.py | 17 +- users/models.py | 15 +- users/signals.py | 9 +- users/static/users/img/registerbackground.jpg | Bin 0 -> 466984 bytes users/templates/users/base.html | 62 +++-- users/templates/users/dashboard.html | 3 - users/templates/users/login.html | 21 +- users/templates/users/logout.html | 22 +- users/templates/users/password_reset.html | 20 +- .../users/password_reset_complete.html | 18 +- .../users/password_reset_confirm.html | 37 ++- .../templates/users/password_reset_done.html | 16 +- .../templates/users/password_reset_mail.html | 9 +- users/templates/users/publicbase.html | 151 ++++------- .../templates/users/publicbase.html_SAVE.html | 129 +++++++++ users/templates/users/register.html | 62 ++++- users/templates/users/register_OLD.html | 10 + ...AL_KORRIGIEREN.html => register_SAVE.html} | 0 users/templates/users/registercomplete.html | 18 +- users/usersforms.py | 23 +- users/views.py | 100 ++++++- 43 files changed, 881 insertions(+), 298 deletions(-) create mode 100644 dasettings/templates/dasettings/modulesettings_organigramm.html create mode 100644 users/static/users/img/registerbackground.jpg create mode 100644 users/templates/users/publicbase.html_SAVE.html create mode 100644 users/templates/users/register_OLD.html rename users/templates/users/{register_NORMAL_KORRIGIEREN.html => register_SAVE.html} (100%) diff --git a/dasettings/forms.py b/dasettings/forms.py index 39f563f..cfcea11 100644 --- a/dasettings/forms.py +++ b/dasettings/forms.py @@ -4,6 +4,14 @@ from django.contrib.auth.models import User from users.models import AgencyGroup, Agency, Profile, AgencyJob, AgencyNetwork from PIL import Image +class AgencyOrganigrammForm(forms.ModelForm): + class Meta: + model = Agency + fields = ['dynamicprofile'] + + labels = { + 'dynamicprofile' : "Dynamischer Steckbrief" + } class AgencyNetworkForm(forms.ModelForm): class Meta: @@ -94,13 +102,14 @@ class UserProfileForm(forms.ModelForm): "persnumber" : "Personalnummer", "visible" : "Im Organigramm sichtbar", "phonemobile" : "Mobilnummer", + "phone_public" : "Nur Interne Verwendung der Mobilnummer", "phoneland" : "Festnetznummer", "image": "Profilbild", "func" : "Agenturfunktion", "compfunc" : "Tätigkeit" } widgets = {"parent" : forms.HiddenInput()} - fields = ["parent", "func", "compfunc", "visible", "phoneland", "phonemobile", "persnumber", "image" ] + fields = ["parent", "func", "compfunc", "visible", "phoneland", "phonemobile", "phone_public", "persnumber", "image" ] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/dasettings/templates/dasettings/agency_content.html b/dasettings/templates/dasettings/agency_content.html index 584dccc..9784143 100644 --- a/dasettings/templates/dasettings/agency_content.html +++ b/dasettings/templates/dasettings/agency_content.html @@ -15,7 +15,7 @@
{% for formfield in agencyform %} - {% if forloop.counter|divisibleby:6 %} + {% if forloop.counter|divisibleby:5 %}
{{formfield|as_crispy_field}} diff --git a/dasettings/templates/dasettings/modulesettings_organigramm.html b/dasettings/templates/dasettings/modulesettings_organigramm.html new file mode 100644 index 0000000..f8c83dc --- /dev/null +++ b/dasettings/templates/dasettings/modulesettings_organigramm.html @@ -0,0 +1,19 @@ +{% load crispy_forms_tags %} +
+ {% csrf_token %} + {{modsettings_organigramm|crispy}} +
+ \ No newline at end of file diff --git a/dasettings/templates/dasettings/moduls_content.html b/dasettings/templates/dasettings/moduls_content.html index 4db9b03..c434c2a 100644 --- a/dasettings/templates/dasettings/moduls_content.html +++ b/dasettings/templates/dasettings/moduls_content.html @@ -16,8 +16,8 @@ {% for formfield in modulform %} {{formfield.label_tag}} - {{formfield}} - + {{formfield}} + {% endfor %} @@ -26,3 +26,39 @@
+ +{% for formfield in modulform %} + +
+ +{% endfor %} diff --git a/dasettings/templates/dasettings/structure_content.html b/dasettings/templates/dasettings/structure_content.html index 6ef1633..6a769ae 100644 --- a/dasettings/templates/dasettings/structure_content.html +++ b/dasettings/templates/dasettings/structure_content.html @@ -122,7 +122,7 @@ noclickeffect:active { border-style: outset !important;}