diff --git a/standards/__pycache__/forms.cpython-38.pyc b/standards/__pycache__/forms.cpython-38.pyc index 3aa4028..c942996 100644 Binary files a/standards/__pycache__/forms.cpython-38.pyc and b/standards/__pycache__/forms.cpython-38.pyc differ diff --git a/standards/__pycache__/views.cpython-38.pyc b/standards/__pycache__/views.cpython-38.pyc index 08a5a43..4a00f86 100644 Binary files a/standards/__pycache__/views.cpython-38.pyc and b/standards/__pycache__/views.cpython-38.pyc differ diff --git a/standards/forms.py b/standards/forms.py index bbb20ba..77d6d0d 100644 --- a/standards/forms.py +++ b/standards/forms.py @@ -3,7 +3,10 @@ from django.forms import ModelForm from .models import Standards from areas.models import Areas from tasks.models import Tasks -from ckeditor.widgets import CKEditorWidget +#from ckeditor.widgets import CKEditorWidget + + + class StandardAddStandard(forms.ModelForm): @@ -13,7 +16,7 @@ class StandardAddStandard(forms.ModelForm): "name" : "Titel", "area" : "Übergeordneter Bereich", "task" : "Aufgabenbereich", - "content": "Inhalt" + "content": "Inhalt" } fields = ['name', 'area', 'task', 'content'] ''' diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index cad8ce5..5ce496e 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -1,4 +1,6 @@ {% extends "users/base.html" %} +{% load counter_tag %} + {% block content %}
Keine Ergebnisse in Standards
@@ -14,7 +14,7 @@Keine Ergebnisse in Bereichen
@@ -24,7 +24,7 @@Keine Ergebnisse in Aufgaben
@@ -34,7 +34,7 @@Keine Ergebnisse in Personen
diff --git a/users/urls.py b/users/urls.py index 71e3c7c..2c89fc8 100644 --- a/users/urls.py +++ b/users/urls.py @@ -33,8 +33,6 @@ urlpatterns = [ path('support/', views.support, name="supportda"), path('setuserparent/', views.setuserparent, name="users-setuserparent"), path('sendpassmail/', views.sendpassmail, name="users-sendpassmail") - - ] diff --git a/users/views.py b/users/views.py index ba4bc8c..8d0b955 100644 --- a/users/views.py +++ b/users/views.py @@ -409,7 +409,6 @@ def GlobalSearch(request): else: return HttpResponse("Request method is not a GET") - def searchStandardRouter(request): if request.method == 'GET': return redirect('/standards/standard/'+request.GET['s_id']+'/single') @@ -443,9 +442,7 @@ def UsersAreaTaskUpdate(request, pk): area_ids.append(int(tempdata[1])) elif(tempdata[0] == 'task'): task_ids.append(int(tempdata[1])) - print(area_ids) - print(task_ids) - + areas = Areas.objects.filter(agency__pk=user.profile.agency.pk) tasks = Tasks.objects.filter(agency__pk=user.profile.agency.pk)