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 %}
+
+
\ 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;}
- Möchten Sie den Bereich wirklich löschen? Alle darin enthaltenen Tätigkeiten und Standards werden ebenfalls entfernt!
+ Möchten Sie den Bereich wirklich löschen? Alle darin enthaltenen Tätigkeiten werden gelöscht und die Standards müssen neu einer Tätigkeit und einem Bereich zugeordnet werde!