From 87515609ef7158f27a97e327046614f2927f0d7b Mon Sep 17 00:00:00 2001 From: Gokuldevx Date: Tue, 26 Aug 2025 13:24:30 +0530 Subject: [PATCH] minor update --- .../core/__pycache__/views.cpython-313.pyc | Bin 16965 -> 16972 bytes civicfix/core/templates/core/base.html | 7 +- civicfix/core/templates/core/index.html | 405 +++++++++--------- .../dashboard/superadmin_dashboard.html | 11 +- .../department/manage_departments.html | 2 +- civicfix/core/views.py | 9 +- 6 files changed, 225 insertions(+), 209 deletions(-) diff --git a/civicfix/core/__pycache__/views.cpython-313.pyc b/civicfix/core/__pycache__/views.cpython-313.pyc index bc4512ac5dcbee3eca8891dd8cc3125f6376b2c0..0f287f7d3fffb47957d2a2d0aea960a6ef7585d9 100644 GIT binary patch delta 4208 zcmZ`*eQaA-6@Sm)i4!Mr9LGr<*ZFAD=LYAq&APT}(>6_KH*LwQ*-*=j+8))4f492z=O?(sv+7yO_kSbt80)a$AL8%^$sp2mXlgcXbCveVrj^lL2 ze;nU?&bjCQ&gZ+ox+4DWis-plUtcT0Z(;6-3xADX^#sHtSNr8s%)>lkK^A0Zydl=e z8foo{H^scn8*66GF(300uO{9S^D{rJYh`!5H5OojSQ~4LwX^nE2kVFhS&(FP@y=L? zg<{*-wpf^jfmh!yu&%QX+0!oULIm(*-LP+feaYMltOpp4RSLaw6CB$vdx7?yb)5Cf z&70DSnSMCcBe%2*=fw(dhwO(l67XA*&vwWG*hj#Ivs*YD*(I7+%57*bU~VdhcW$Wh zOJZluKxKDb>@0m^V^=W|d;p~Aeb;nu>aamM1W<-dJMuP=Y=8-GYE`fdm-V_#y%0i` zyC0x9GVham`Ladj|F*m;TKQG$Fu!H>+aI$C!dLlVf0(~L+QB8;Sj`#JT|wZVm;9p0 zQ?@R#mjBDz$*wYg@l-} zB&-Qr!Y(_b_Pp~97%+bcL3SmayR7D}SCDE>@c-C%@~C6T)}$A7e$Fwt+rzvdH=KpJ z^J-ex412mz%soLO94~WQhwjEdfNFqr3kYGhK z^3To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r?l {% if user.is_citizen %}
  • - Citizen Dashboard + + Citizen Dashboard
  • {% endif %} @@ -97,7 +98,7 @@ {% if user.is_superuser %}
  • - Super Admin + Super Admin
  • {% endif %} @@ -108,7 +109,7 @@
  • {% csrf_token %} - +
  • diff --git a/civicfix/core/templates/core/index.html b/civicfix/core/templates/core/index.html index c7324b9..caa21ff 100644 --- a/civicfix/core/templates/core/index.html +++ b/civicfix/core/templates/core/index.html @@ -1,147 +1,160 @@ {% extends "core/base.html" %} {% block content %} - -
    -
    -

    Report. Resolve. Rejoice.

    -

    Your voice matters in making our community better. Report local issues and track their resolution in real-time.

    -
    - {% if user.is_authenticated %} - Report an Issue - {% else %} - Report an Issue - {% endif %} - Learn More -
    -
    -
    - - -
    -
    -
    -

    {{ total_issues|default:"0" }}+

    -

    Issues Reported

    -
    -
    -

    Soon

    -

    Issues Resolved

    -
    -
    -

    {{ active_users|default:"0" }}+

    -

    Active Users

    -
    -
    -

    Soon

    -

    Municipal Departments

    -
    -
    -
    - - -
    -
    -

    Why Choose Civixfix?

    -

    Transparent, efficient, and community-driven problem solving

    -
    -
    -
    -
    -
    -
    - -
    -
    Location-Based Reporting
    -

    Pinpoint issues on an interactive map for accurate location tracking and faster resolution.

    -
    -
    -
    -
    -
    -
    -
    - -
    -
    Real-Time Tracking
    -

    Follow your reported issues through every stage from reporting to resolution.

    -
    -
    -
    -
    -
    -
    -
    - -
    -
    Community Engagement
    -

    Vote and comment on issues to help prioritize what matters most to your neighborhood.

    -
    -
    -
    -
    -
    - - -
    -
    -
    -

    How Civixfix Works

    -

    Simple steps to make your community better

    -
    -
    -
    -
    -
    - 1 -
    Report an Issue
    -

    Take a photo, add details, and drop a pin on the map to report problems in your area.

    -
    -
    -
    -
    -
    -
    - 2 -
    Community Support
    -

    Others can vote and comment to show support and add details to your report.

    -
    -
    -
    -
    -
    -
    - 3 -
    Official Response
    -

    Municipal authorities receive, prioritize, and work on resolving the issues.

    -
    -
    -
    -
    -
    -
    - - -
    -
    -

    Recently Reported Issues

    + +
    +
    +

    Report. Resolve. Rejoice.

    +

    Your voice matters in making our community better. Report local issues and track their + resolution in real-time.

    +
    {% if user.is_authenticated %} - View All Issues + Report an Issue {% else %} - View All Issues + Report an Issue {% endif %} + Learn More +
    +
    +
    + + +
    +
    +
    +

    {{ total_issues|default:"0" }}+

    +

    Issues Reported

    +
    +
    +

    {{ resolved_issues|default:"0" }}+

    +

    Issues Resolved

    +
    +
    +

    {{ active_users|default:"0" }}+

    +

    Active Users

    +
    +
    +

    {{ total_departments|default:"0" }}

    +

    Municipal Departments

    +
    +
    +
    + + + +
    +
    +

    Why Choose Civixfix?

    +

    Transparent, efficient, and community-driven problem solving

    +
    +
    +
    +
    +
    +
    + +
    +
    Location-Based Reporting
    +

    Pinpoint issues on an interactive map for accurate location tracking + and faster resolution.

    +
    +
    +
    +
    +
    +
    +
    + +
    +
    Real-Time Tracking
    +

    Follow your reported issues through every stage from reporting to + resolution.

    +
    +
    +
    +
    +
    +
    +
    + +
    +
    Community Engagement
    +

    Vote and comment on issues to help prioritize what matters most to + your neighborhood.

    +
    +
    +
    +
    +
    + + +
    +
    +
    +

    How Civixfix Works

    +

    Simple steps to make your community better

    - {% for issue in recent_issues %}
    -
    - {% if issue.photo %} - {{ issue.title }} - {% else %} - No image - {% endif %} -
    - +
    + 1 +
    Report an Issue
    +

    Take a photo, add details, and drop a pin on the map to report + problems in your area.

    +
    +
    +
    +
    +
    +
    + 2 +
    Community Support
    +

    Others can vote and comment to show support and add details to + your report.

    +
    +
    +
    +
    +
    +
    + 3 +
    Official Response
    +

    Municipal authorities receive, prioritize, and work on resolving + the issues.

    +
    +
    +
    +
    +
    +
    + + +
    +
    +

    Recently Reported Issues

    + {% if user.is_authenticated %} + View All Issues + {% else %} + View All Issues + {% endif %} +
    +
    + {% for issue in recent_issues %} +
    +
    + {% if issue.photo %} + {{ issue.title }} + {% else %} + No image + {% endif %} +
    + - {{ issue.department.name|default:"General" }} - -
    {{ issue.title|truncatewords:5 }}
    -

    {{ issue.description|truncatewords:15 }}

    -
    - {{ issue.location|truncatewords:2 }} - - -
    - {% if user.is_authenticated %} - - {% else %} - - - {{ issue.vote_count }} - - {% endif %} -
    + {{ issue.department.name|default:"General" }} + +
    {{ issue.title|truncatewords:5 }}
    +

    {{ issue.description|truncatewords:15 }}

    +
    + {{ issue.location|truncatewords:2 }} + + +
    + {% if user.is_authenticated %} + + {% else %} + + + {{ issue.vote_count }} + + {% endif %}
    - +
    +
    - {% empty %} -
    - -

    No issues reported yet

    -

    Be the first to report an issue in your community!

    - Get Started -
    - {% endfor %}
    -
    + {% empty %} +
    + +

    No issues reported yet

    +

    Be the first to report an issue in your community!

    + Get Started +
    + {% endfor %} +
    +
    - -
    -
    -

    Ready to make a difference in your community?

    -

    Join {{ active_users|default:"thousands of" }} citizens who are actively improving their neighborhoods.

    - {% if user.is_authenticated %} - Report an Issue - {% else %} - Get Started Now - {% endif %} -
    -
    + +
    +
    +

    Ready to make a difference in your community?

    +

    Join {{ active_users|default:"thousands of" }} citizens who are actively improving their + neighborhoods.

    + {% if user.is_authenticated %} + Report an Issue + {% else %} + Get Started Now + {% endif %} +
    +
    {% endblock %} {% block extra_js %}