diff --git a/orga/__pycache__/views.cpython-38.pyc b/orga/__pycache__/views.cpython-38.pyc index 83549c2..5c3a69a 100644 Binary files a/orga/__pycache__/views.cpython-38.pyc and b/orga/__pycache__/views.cpython-38.pyc differ diff --git a/orga/templates/orga/orga_single_aut.html b/orga/templates/orga/orga_single_aut.html index c820b1b..0e04247 100644 --- a/orga/templates/orga/orga_single_aut.html +++ b/orga/templates/orga/orga_single_aut.html @@ -22,7 +22,7 @@ {% isUserInAuth task area user_id as checkIsUserAuth %} {% if task.area.pk == area.pk and task.visible and checkIsUserAuth %}
-
{{task.name}}
+
{{task.name}}
{% endif %} @@ -32,7 +32,7 @@ {% for prio in prios %} {% if prio.task.area.pk == area.pk and prio.task.visible %}
-
{{prio.task.name}}
+
{{prio.task.name}}
{% endif %} {% endfor %} diff --git a/orga/templates/orga/orga_single_ex.html b/orga/templates/orga/orga_single_ex.html index c0ce83b..e04afd9 100644 --- a/orga/templates/orga/orga_single_ex.html +++ b/orga/templates/orga/orga_single_ex.html @@ -23,7 +23,7 @@ {% isUserInEx task area user_id as checkIsUserEx %} {% if task.area.pk == area.pk and task.visible and checkIsUserEx %}
-
{{task.name}}
+
{{task.name}}
{% endif %} {% endfor %} @@ -32,7 +32,7 @@ {% for prio in prios %} {% if prio.task.area.pk == area.pk and prio.task.visible %}
-
{{prio.task.name}}
+
{{prio.task.name}}
{% endif %} {% endfor %} diff --git a/orga/templates/orga/orga_single_rep.html b/orga/templates/orga/orga_single_rep.html index 9dc41d2..38d16f2 100644 --- a/orga/templates/orga/orga_single_rep.html +++ b/orga/templates/orga/orga_single_rep.html @@ -22,7 +22,7 @@ {% isUserInRep task area user_id as checkIsUserRep %} {% if task.area.pk == area.pk and task.visible and checkIsUserRep %}
-
{{task.name}}
+
{{task.name}}
{% endif %} @@ -32,7 +32,7 @@ {% for prio in prios %} {% if prio.task.area.pk == area.pk and prio.task.visible %}
-
{{prio.task.name}}
+
{{prio.task.name}}
{% endif %} {% endfor %} diff --git a/standards/templates/standards/standard_task.html b/standards/templates/standards/standard_task.html index b2d2a9b..3fd82a2 100644 --- a/standards/templates/standards/standard_task.html +++ b/standards/templates/standards/standard_task.html @@ -8,7 +8,9 @@ -

Standards aus dem Tätigkeitsbereich {{taskname}} des Bereichs {{areaname}}

+

Standards aus dem Tätigkeitsbereich {{taskname}} des Bereichs {{areaname}} +  Standard +


diff --git a/standards/templates/standards/standard_task_user.html b/standards/templates/standards/standard_task_user.html new file mode 100644 index 0000000..79a08dd --- /dev/null +++ b/standards/templates/standards/standard_task_user.html @@ -0,0 +1,102 @@ +{% extends "users/base.html" %} +{% block content %} +
+ +

Standards aus dem Tätigkeitsbereich {{taskname}} des Bereichs {{areaname}} von {{vieweduser.get_full_name}} +  Standard +

+
+
+
+ + + + + + + + + + + + {% for item in standards_of_agency_task %} + {% if item.public or item.created_standard_by == user or perms.users.standardmanager %} + + + + + + + + + + {% endif %} + {% endfor %} +
TitelErstellt vonErstellt amGeändert vonGeändert amÖffentlichkeitsstatus 
{{item.name}}{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}}{{ item.created_standard_date|date:"d.m.Y, H:i"}}{{ item.last_modified_by.first_name }} {{ item.last_modified_by.last_name }}{{ item.last_modified_on|date:"d.m.Y, H:i"}}{{item.public|yesno:"Öffentlich,Nicht öffentlich"}} + {% if item.created_standard_by == user or perms.users.standardmanager %} + + + + + + + + + {% endif %} +
+
+ + + +{% endblock content %} diff --git a/standards/templates/standards/standards_single_agn.html b/standards/templates/standards/standards_single_agn.html index c20d030..016cb57 100644 --- a/standards/templates/standards/standards_single_agn.html +++ b/standards/templates/standards/standards_single_agn.html @@ -25,11 +25,7 @@
- {% if standard.addedfiles.all|length > 0 or standard.linked_standards.all|length > 0 or standard.addedfiles.all|length > 0 or standard.linked_standards.all|length > 0 or standard.freefield_title|length > 0 %}
- {% else %} -
- {% endif %}

@@ -39,6 +35,26 @@

+
+
+
Struktur
+

+

Dieser Standard könnte wie folgt eingeordnet werden:

+ + + + + + + + + +
Bereich:{{standard.area.name}}
Tätigkeit:  {{standard.task.name}}
+

+
+
+ + {% if standard.freefield_title|length > 0 %}
@@ -49,7 +65,7 @@
{% endif %} - + diff --git a/standards/urls.py b/standards/urls.py index cff200a..041839c 100644 --- a/standards/urls.py +++ b/standards/urls.py @@ -22,6 +22,7 @@ urlpatterns = [ path('standard///singleagn', views.StandardSingleAgn, name="standard-single-agn"), path('standard//area', views.StandardArea, name="standard-area"), path('standard//task', views.StandardTask, name="standard-task"), + path('standard//task/', views.StandardTaskUser, name="standard-task-user"), path('standardsagn/', views.StandardFromAgn, name="standard-agn"), path('standardcopy/', views.CopyStandard, name="standard-copyagn"), path('loadaggroupm/', views.LoadAGGroupMembers, name="standard-loadaggroupmembers"), diff --git a/standards/views.py b/standards/views.py index 7086a24..17d900c 100644 --- a/standards/views.py +++ b/standards/views.py @@ -816,6 +816,23 @@ def StandardTask(request, pk): } return render(request, 'standards/standard_task.html', context) +@login_required +def StandardTaskUser(request, pk, userpk): + standards = Standards.objects.filter(agency__pk=request.user.profile.agency.pk, created_standard_by=User.objects.get(pk=userpk)).exclude(area=None).exclude(task=None).filter(task__pk=pk) or Standards.objects.filter(agency__pk=request.user.profile.agency.pk, last_modified_by=User.objects.get(pk=userpk)).exclude(area=None).exclude(task=None).filter(task__pk=pk) + task = Tasks.objects.get(pk=pk, agency=request.user.profile.agency) + area = Areas.objects.get(pk=task.area.pk, agency=request.user.profile.agency) + context = { + 'active_link':'standards', + 'standards_of_agency_task' : standards, + 'taskid' : pk, + 'taskname' : task.name, + 'areaid' : area.pk, + 'areaname' : area.name, + 'vieweduser' : User.objects.get(pk=userpk) + } + return render(request, 'standards/standard_task_user.html', context) + + # AJAX Standard @login_required def updatesbyajax(request, pk): diff --git a/users/templates/users/user_confirm_delete.html b/users/templates/users/user_confirm_delete.html index bd1ac22..b46c7c5 100644 --- a/users/templates/users/user_confirm_delete.html +++ b/users/templates/users/user_confirm_delete.html @@ -47,108 +47,138 @@
- {% for s in standards_to_change %} -
-
-   - Standard: {{s.name}} - -
- - {% if s.created_standard_by == user_to_del %} - - - - - {% endif %} - - {% if user_to_del in s.representative.all %} - - - - - {% endif %} + - {% if user_to_del in s.executor.all %} - - - - - {% endif %} +
+ {% for s in standards_to_change %} +
+
+
+ +
+
- {% if user_to_del in s.authority.all %} -
- - - - {% endif %} -
- Ersteller ändern auf:   -
- -
- -
- - {% for us in usersofagency %} - - {% endfor %} - -
- -
-
-
- Vertretung übertragen auf:   -
- -
- -
- - {% for us in usersofagency %} - - {% endfor %} - -
- -
-
-
- Ausführung übertragen auf:   -
- -
- -
- - {% for us in usersofagency %} - - {% endfor %} - -
- -
-
-
- Verantwortung übertragen auf:   - -
- -
- -
- - {% for us in usersofagency %} - - {% endfor %} - -
- -
-
-
- {% endfor %} +
+
+ +
+   + Standard betrachten +
+ + + {% if s.created_standard_by == user_to_del %} + + + + + {% endif %} + + {% if user_to_del in s.representative.all %} + + + + + {% endif %} + + {% if user_to_del in s.executor.all %} + + + + + {% endif %} + + {% if user_to_del in s.authority.all %} + + + + + {% endif %} +
+ Ersteller ändern auf:   +
+ +
+ +
+ + {% for us in usersofagency %} + + {% endfor %} + +
+ +
+
+
+ Vertretung übertragen auf:   +
+ +
+ +
+ + {% for us in usersofagency %} + + {% endfor %} + +
+ +
+
+
+ Ausführung übertragen auf:   +
+ +
+ +
+ + {% for us in usersofagency %} + + {% endfor %} + +
+ +
+
+
+ Verantwortung übertragen auf:   + +
+ +
+ +
+ + {% for us in usersofagency %} + + {% endfor %} + +
+ +
+
+
+ + + +
+
+
+ {% endfor %} + +
+ + + + + + + +

Alle Chat-Nachrichten werden unwiederruflich gelöscht! Soeben wurden alle Vertragsdaten (Abwesenheit und Zeiterfassung), wenn vorhanden, als CSV heruntergeladen. Diese können Sie archivieren und entsprechend Ihrer agenturinternen Gegebenheiten bzgl. Datenspeicherung aufbewahren.

Daten erneut herunterladen @@ -295,7 +325,7 @@ - {% for s in standards_to_change %} +{% for s in standards_to_change %}