From b608f6ca0fb81a1f4643f8fbd591c61940c9896e Mon Sep 17 00:00:00 2001 From: Gokuldevx Date: Mon, 25 Aug 2025 12:37:50 +0530 Subject: [PATCH] major update --- .../core/__pycache__/views.cpython-313.pyc | Bin 12508 -> 12538 bytes .../citizen_dashboard.html | 0 .../superadmin_dashboard.html | 0 .../department_detail.html | 0 .../manage_departments.html | 0 .../{core => issues}/issue_detail.html | 0 .../{core => issues}/view_all_issues.html | 0 civicfix/core/views.py | 12 ++++++------ 8 files changed, 6 insertions(+), 6 deletions(-) rename civicfix/core/templates/{core => dashboard}/citizen_dashboard.html (100%) rename civicfix/core/templates/{core => dashboard}/superadmin_dashboard.html (100%) rename civicfix/core/templates/{core => department}/department_detail.html (100%) rename civicfix/core/templates/{core => department}/manage_departments.html (100%) rename civicfix/core/templates/{core => issues}/issue_detail.html (100%) rename civicfix/core/templates/{core => issues}/view_all_issues.html (100%) diff --git a/civicfix/core/__pycache__/views.cpython-313.pyc b/civicfix/core/__pycache__/views.cpython-313.pyc index 5e3d968b2265b2ebc480c625d0ab040910223a5b..348638f02453552028cbe603fb397249b75157c5 100644 GIT binary patch delta 307 zcmcbU_$!g`GcPX}0}vE*ugTz4*~oX7lS?5bu{a|sKd~rf^9RmmMo!xu<(IkLFR-|8 zuHjZ;XP3?_E-p+Zl}XUzhLFS!F@+n_iZ^66K60{JZ{96p!pklJQ8W3A;zAzN z1ELqrV=r^ZU0{jZyin;DGnX>lg2@ePN$d`nxg9UCI8LtNmfp;wzJ!rmDJ8Wav8W_B zHLqmyT8$pYS(B|a+qvy;aEMN*{=m%S#JKsiW(5og<77C-dr_<*@@fM^Nk| zE3+fx=BK*H7#X!DuhDnl@nHPS%)lh@fk}|jWAYFET!VPVFI*gq+Mh%i8D&3k0Htm+ d3SJOWy3DBjk%^Jf39MWNqK5^kYz~Z#Ikz0kG zRT3<-Mu?S3#_WcW#0@cp8`6q5WHml=vRblzW?b?%09V~TYB>g5k6j4F_4DI ze-#(<81E>(Xc~Q)JLUpQ%;r@}x0qSwz;bti~)aYTH zIoVIMoy+nDhvx@Wm9KrRs!`^d^{y_r$(7$c*` zQ0rOS-UADI{# RZ9%G4AX->}+{qgaJORn{U2XsX diff --git a/civicfix/core/templates/core/citizen_dashboard.html b/civicfix/core/templates/dashboard/citizen_dashboard.html similarity index 100% rename from civicfix/core/templates/core/citizen_dashboard.html rename to civicfix/core/templates/dashboard/citizen_dashboard.html diff --git a/civicfix/core/templates/core/superadmin_dashboard.html b/civicfix/core/templates/dashboard/superadmin_dashboard.html similarity index 100% rename from civicfix/core/templates/core/superadmin_dashboard.html rename to civicfix/core/templates/dashboard/superadmin_dashboard.html diff --git a/civicfix/core/templates/core/department_detail.html b/civicfix/core/templates/department/department_detail.html similarity index 100% rename from civicfix/core/templates/core/department_detail.html rename to civicfix/core/templates/department/department_detail.html diff --git a/civicfix/core/templates/core/manage_departments.html b/civicfix/core/templates/department/manage_departments.html similarity index 100% rename from civicfix/core/templates/core/manage_departments.html rename to civicfix/core/templates/department/manage_departments.html diff --git a/civicfix/core/templates/core/issue_detail.html b/civicfix/core/templates/issues/issue_detail.html similarity index 100% rename from civicfix/core/templates/core/issue_detail.html rename to civicfix/core/templates/issues/issue_detail.html diff --git a/civicfix/core/templates/core/view_all_issues.html b/civicfix/core/templates/issues/view_all_issues.html similarity index 100% rename from civicfix/core/templates/core/view_all_issues.html rename to civicfix/core/templates/issues/view_all_issues.html diff --git a/civicfix/core/views.py b/civicfix/core/views.py index f505441..86c0ad0 100644 --- a/civicfix/core/views.py +++ b/civicfix/core/views.py @@ -53,7 +53,7 @@ def citizen_dashboard(request): 'categories': categories, 'issue_form': IssueForm(), } - return render(request, 'core/citizen_dashboard.html', context) + return render(request, 'dashboard/citizen_dashboard.html', context) @login_required def report_issue(request): @@ -101,7 +101,7 @@ def view_all_issues(request): if category_id: issues = issues.filter(category_id=category_id) - return render(request, 'core/view_all_issues.html', { + return render(request, 'issues/view_all_issues.html', { 'issues': issues, 'categories': categories, 'selected_status': status, @@ -183,7 +183,7 @@ def add_comment(request, pk, parent_id=None): def issue_detail(request, pk): issue = get_object_or_404(Issue, pk=pk) comments = issue.comments.filter(parent__isnull=True) # top-level comments - return render(request, "core/issue_detail.html", {"issue": issue, "comments": comments}) + return render(request, "issues/issue_detail.html", {"issue": issue, "comments": comments}) def add_comment(request, pk, parent_id=None): if request.method == "POST" and request.user.is_authenticated: @@ -202,7 +202,7 @@ def superadmin_check(user): @login_required @user_passes_test(superadmin_check) def superadmin_dashboard(request): - return render(request, "core/superadmin_dashboard.html") + return render(request, "dashboard/superadmin_dashboard.html") @login_required @@ -217,7 +217,7 @@ def manage_departments(request): Department.objects.create(name=name, description=description) return redirect("manage_departments") - return render(request, "core/manage_departments.html", { + return render(request, "department/manage_departments.html", { "departments": departments }) @@ -242,7 +242,7 @@ def department_detail(request, pk): department.users.add(user) return redirect("department_detail", pk=department.id) - return render(request, "core/department_detail.html", { + return render(request, "department/department_detail.html", { "department": department, "users": users, }) \ No newline at end of file