{% load static %}
{{ user.get_full_name|default:user.username|first|upper }}
{{ user.get_full_name|default:user.username }}
{% if user.staff_profile.role %}{{ user.staff_profile.get_role_display }} {% elif user.is_superuser %}Administrator {% else %}Staff{% endif %}
·
{# Context processor injects: user_role, is_management, is_teacher_role, is_bursar_role, is_head_role, is_support_only #}
Main
{# School-wide dashboard: management only #} {% if user.is_superuser or is_management %} Dashboard {% endif %} {# My Dashboard: teachers + support staff (driver, canteen, security etc.) #} {% if user.is_superuser or is_teacher_role or is_support_only %} My Dashboard {% endif %} {# Bursar shortcut on top #} {% if user.is_superuser or is_bursar_role %} Bursar Dashboard {% endif %}
{# Support staff (driver/canteen) can see student list to check registrations & fee status #} {% if user.is_superuser or is_management or is_teacher_role or is_support_only %}
Students
All Students {# Add/manage students: admin and above only #} {% if user.is_superuser or user_role in "proprietor,head_master,head_mistress,admin,bursar" %} Add Student Parents / Guardians
Import CSV Export CSV Sample Template
{% endif %}
{% endif %}
Staff
{# Staff directory (contact info): everyone can see colleagues #} Staff Directory {# My own profile #} {% if user.staff_profile %} My Profile {% endif %} {# Add / edit staff: admin+ only #} {% if user.is_superuser or user_role in "proprietor,head_master,head_mistress,admin" %} Add Staff {% endif %} {# Leave: everyone can request and view own leave #} Leave Requests Request Leave {# Staff attendance tracking: management only #} {% if user.is_superuser or is_management %} Staff Attendance {% endif %}
{# Support staff (drivers, cleaners etc.) don't need the academics section #} {% if user.is_superuser or is_management or is_teacher_role %}
Academics
Classes Subjects Report Cards
{% endif %} {# Support staff don't mark class attendance #} {% if user.is_superuser or is_management or is_teacher_role %}
Attendance
{% if user.is_superuser or is_management %} Attendance List {% endif %} Mark Attendance {% if user.is_superuser or is_management %} Mark Staff Attendance {% endif %} Attendance Report
{% endif %} {# Full finance panel: bursar and above only #} {% if user.is_superuser or is_bursar_role %}
Finance
Bursar Dashboard Invoices Bulk Generate Payments Fee Structures Item Prices Enrollment Fees Expenses Expense Categories Discounts Financial Reports
{% elif user_role in "proprietor,head_master,head_mistress,admin" %} {# Head / admin: read-only finance overview, no management actions #}
Finance
Invoices Payments Fee Structures Financial Reports
{% endif %} {# Announcements visible to everyone including support staff #}
Communication
Announcements {# SMS compose: teachers and above #} {% if user.is_superuser or is_management or is_teacher_role %} Send SMS {% endif %} {# SMS history and parent contacts: management only #} {% if user.is_superuser or is_management %} SMS History Parent Contacts {% endif %}
{% if user.is_superuser or is_management or is_teacher_role %}
Reports
Academic Attendance {% if user.is_superuser or is_management %} Financial Custom Report {% endif %}
{% endif %} {% if user.is_superuser or is_head_role %}
Administration
Backend Admin
{% endif %}
{% csrf_token %}