diff --git a/areas/templates/areas/areas_management.html b/areas/templates/areas/areas_management.html index a41b9ae..8b4389c 100644 --- a/areas/templates/areas/areas_management.html +++ b/areas/templates/areas/areas_management.html @@ -12,6 +12,10 @@
+
+ +
+
@@ -22,6 +26,7 @@ + {% for item in areas_of_agency %} @@ -44,6 +49,18 @@ {% endfor %} +
 
{{ item.name }}
+
+ {% endblock content %} diff --git a/news/templates/news/news_management.html b/news/templates/news/news_management.html index 9be9503..a622395 100644 --- a/news/templates/news/news_management.html +++ b/news/templates/news/news_management.html @@ -7,13 +7,17 @@ Hier können aktuelle Nachrichten für die Agentur erstellt und verwaltet werden.

-
News erstellen -
+
- -
- +
+
+ +
+ +
+
+
@@ -23,7 +27,8 @@ - {% for news_single in news %} + + {% for news_single in news %} @@ -45,7 +50,19 @@ - {% endfor %} + {% endfor %} +
Titel 
{{news_single.name }} {{ news_single.created_by.first_name }} {{ news_single.created_by.last_name }}
+
+ {% endblock content %} diff --git a/orga/templates/orga/orga_main.html b/orga/templates/orga/orga_main.html index 952b1f9..6120fc5 100644 --- a/orga/templates/orga/orga_main.html +++ b/orga/templates/orga/orga_main.html @@ -18,7 +18,7 @@ {% endblock content %} \ No newline at end of file diff --git a/tasks/templates/tasks/tasks_management.html b/tasks/templates/tasks/tasks_management.html index 3bb6477..a1f2eb1 100644 --- a/tasks/templates/tasks/tasks_management.html +++ b/tasks/templates/tasks/tasks_management.html @@ -13,7 +13,10 @@
- +
+ +
+
@@ -24,6 +27,7 @@ + {% for item in tasks_of_agency %} @@ -45,7 +49,19 @@ - {% endfor %} + {% endfor %} +
 
{{item.name }}
+
+ {% endblock content %} diff --git a/users/__pycache__/usersforms.cpython-38.pyc b/users/__pycache__/usersforms.cpython-38.pyc index e00b415..89029e8 100644 Binary files a/users/__pycache__/usersforms.cpython-38.pyc and b/users/__pycache__/usersforms.cpython-38.pyc differ diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index 5f81dba..3471dab 100644 Binary files a/users/__pycache__/views.cpython-38.pyc and b/users/__pycache__/views.cpython-38.pyc differ diff --git a/users/templates/users/dashboard.html b/users/templates/users/dashboard.html index a153ad9..d4a52f6 100644 --- a/users/templates/users/dashboard.html +++ b/users/templates/users/dashboard.html @@ -11,7 +11,8 @@
-
News
+
News
+
@@ -29,6 +30,7 @@ {% endfor %}
+
@@ -39,7 +41,8 @@
-
Neueste Standards
+
Neueste Standards
+
@@ -57,6 +60,7 @@ {% endfor %}
+
diff --git a/users/templates/users/users_management.html b/users/templates/users/users_management.html index c991337..93055f2 100644 --- a/users/templates/users/users_management.html +++ b/users/templates/users/users_management.html @@ -16,6 +16,10 @@
+
+ +
+
@@ -29,6 +33,7 @@ + {% for item in users_of_agency %} @@ -59,8 +64,20 @@ - {% endfor %} + {% endfor %} +
 
{{item.first_name }} {{ item.last_name }}
+
+ {% endblock content %} \ No newline at end of file diff --git a/users/usersforms.py b/users/usersforms.py index 2ad4f5c..43c742b 100644 --- a/users/usersforms.py +++ b/users/usersforms.py @@ -100,8 +100,7 @@ class UserAreaTaskForm(forms.Form): self.fields['task_'+str(task.pk)] = forms.BooleanField(required=False, initial=False, label="
"+task.name+"
") -class SupportForm(forms.Form): - +class SupportForm(forms.Form): def __init__(self, user, *args, **kwargs): super().__init__(*args, **kwargs) user_name = user.first_name + " " + user.last_name @@ -109,4 +108,5 @@ class SupportForm(forms.Form): self.fields['mail'] = forms.EmailField(required=True, label="E-Mail", initial=user.email) self.fields['problemconc'] = forms.CharField(required=True, label="Problemzusammenfassung") self.fields['problem'] = forms.CharField(required=True, widget=forms.Textarea, label="Ausführliche Beschreibung") - self.fields['image'] = forms.ImageField(required=False) \ No newline at end of file + self.fields['name'].widget.attrs['readonly'] = True + self.fields['mail'].widget.attrs['readonly'] = True \ No newline at end of file diff --git a/users/views.py b/users/views.py index 8d0b955..6cb892f 100644 --- a/users/views.py +++ b/users/views.py @@ -89,7 +89,7 @@ class UsersManagement(LoginRequiredMixin, ListView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) # Get all Users of the Same Agency as logged user - users_of_agency = User.objects.filter(profile__agency__pk=self.request.user.profile.agency.pk) + users_of_agency = User.objects.filter(profile__agency__pk=self.request.user.profile.agency.pk).order_by('last_name') context.update({'active_link' : 'usersmanagement', 'users_of_agency':users_of_agency}) return context