From 15e8344d0eb1b9b6b82bb0ae863079f0d0d5840a Mon Sep 17 00:00:00 2001 From: Gokuldevx Date: Tue, 26 Aug 2025 12:53:52 +0530 Subject: [PATCH] minor update --- .../dashboard/citizen_dashboard.html | 34 +++++++++++++------ .../dashboard/department_dashboard.html | 4 +-- .../core/templates/issues/manage_issues.html | 2 -- .../templates/issues/view_all_issues.html | 34 ++++++++++++------- 4 files changed, 47 insertions(+), 27 deletions(-) diff --git a/civicfix/core/templates/dashboard/citizen_dashboard.html b/civicfix/core/templates/dashboard/citizen_dashboard.html index dea4bc5..3f8e43d 100644 --- a/civicfix/core/templates/dashboard/citizen_dashboard.html +++ b/civicfix/core/templates/dashboard/citizen_dashboard.html @@ -89,17 +89,35 @@ {{ issue.description|truncatewords:15 }}

- {{ issue.category.name|default:"No Category" }} - + + {{ issue.department.name|default:"No Department" }} + + + + {{ issue.get_status_display }} + {{ issue.created_at|date:"M d, Y" }}
+ {% if issue.photo %}
- Issue photo + Issue photo
{% endif %} @@ -114,6 +132,7 @@ {% endfor %} + @@ -146,12 +165,7 @@ {{ issue_form.title }} -
-
- - {{ issue_form.category }} -
-
+
diff --git a/civicfix/core/templates/dashboard/department_dashboard.html b/civicfix/core/templates/dashboard/department_dashboard.html index 59d8ec5..2bdfab0 100644 --- a/civicfix/core/templates/dashboard/department_dashboard.html +++ b/civicfix/core/templates/dashboard/department_dashboard.html @@ -6,7 +6,7 @@

Department Dashboard

- Welcome, {{ request.user.username }}. Your Departments: + Welcome, {{ request.user.username }}. Department: {% for dept in departments %} {{ dept.name }} {% empty %} @@ -21,7 +21,6 @@ # Title - Category Reported By Status Created At @@ -33,7 +32,6 @@ {{ forloop.counter }} {{ issue.title }} - {{ issue.category.name|default:"—" }} {{ issue.reporter.username }} {% if issue.status == "reported" %} diff --git a/civicfix/core/templates/issues/manage_issues.html b/civicfix/core/templates/issues/manage_issues.html index b764f45..c3709ab 100644 --- a/civicfix/core/templates/issues/manage_issues.html +++ b/civicfix/core/templates/issues/manage_issues.html @@ -13,7 +13,6 @@ # Title - Category Reported By Status Created At @@ -25,7 +24,6 @@ {{ forloop.counter }} {{ issue.title }} - {{ issue.category.name|default:"—" }} {{ issue.reporter.username }} {% if issue.status == "reported" %} diff --git a/civicfix/core/templates/issues/view_all_issues.html b/civicfix/core/templates/issues/view_all_issues.html index de31cb2..139a238 100644 --- a/civicfix/core/templates/issues/view_all_issues.html +++ b/civicfix/core/templates/issues/view_all_issues.html @@ -20,12 +20,12 @@ - + + {% for dept in departments %} + {% with dept.id|stringformat:"s" as dept_id %} + {% endwith %} {% endfor %} @@ -52,12 +52,22 @@ {% endif %}

- - - {{ issue.category.name|default:"General" }} + + + {{ issue.department.name|default:"General" }} +
{{ issue.title|truncatewords:6 }}

@@ -86,7 +96,7 @@

- + - + {% empty %}