{% extends "base.html" %} {% block title %}{{ student.get_full_name }}{% endblock %} {% block nav_students %}active{% endblock %} {% block content %}
{% if student.profile_photo %} Photo {% else %}
{{ student.first_name|first|upper }}{{ student.last_name|first|upper }}
{% endif %}
{{ student.get_full_name }}

{{ student.email }}

{% if student.phone %}

{{ student.phone }}

{% endif %}
Enrollment
Student ID {{ enrollment.student_number }}
Program {{ enrollment.program.name }}
Level {{ enrollment.program.get_level_display }}
Enrolled {{ enrollment.enrolled_at|date:"d M Y" }}
Recent Notifications
{% for notif in notifications %}
{{ notif.title }}
{{ notif.message|truncatechars:80 }}
{{ notif.created_at|date:"d M Y, H:i" }}
{% empty %}
No notifications yet.
{% endfor %}
{% if application %}
Personal Information
Full Name
{{ application.full_name }}
Date of Birth
{{ application.date_of_birth|date:"d M Y" }}
Gender
{{ application.get_gender_display }}
Nationality
{{ application.nationality }}
{% if application.national_id %}
National ID / Passport
{{ application.national_id }}
{% endif %} {% if application.religion %}
Religion
{{ application.religion }}
{% endif %}
Phone
{{ application.phone_number }}
Email
{{ application.email }}
Address
{{ application.physical_address }}, {{ application.district }}
Academic Background
Highest Level
{{ application.get_highest_education_level_display }}
Year Completed
{{ application.year_of_completion }}
Last School Attended
{{ application.last_school_attended }}
Emergency Contact
Name
{{ application.emergency_contact_name }}
Relationship
{{ application.get_emergency_contact_relationship_display }}
Phone
{{ application.emergency_contact_phone }}
{% if application.emergency_contact_email %}
Email
{{ application.emergency_contact_email }}
{% endif %}
{% if application.documents.exists %}
Uploaded Documents
    {% for doc in application.documents.all %}
  • {{ doc.get_document_type_display }}
    {% if doc.is_verified %} Verified {% else %} Pending {% endif %}
  • {% endfor %}
{% endif %}
Application Record
Reference
{{ application.reference_number }}
Submitted
{{ application.submitted_at|date:"d M Y, H:i" }}
{% if application.reviewed_by %}
Reviewed By
{{ application.reviewed_by.get_full_name }}
Reviewed
{{ application.reviewed_at|date:"d M Y, H:i" }}
{% endif %} {% if application.admin_notes %}
Admin Notes
{{ application.admin_notes }}
{% endif %}
Documents & Edit Access
{% csrf_token %} {% if enrollment.edits_unlocked %} {% else %} {% endif %}

Student editing is currently {% if enrollment.edits_unlocked %} Unlocked — the student can update contact details and documents. {% else %} Locked — the student cannot change contact details or documents. {% endif %}

{% for d in documents %}
{{ d.label }} {% if d.doc %} — {{ d.doc.filename }} {% if d.doc.is_verified %}Verified{% endif %} {% else %} — Not uploaded {% endif %}
{% csrf_token %}
{% endfor %}
{% else %}
No linked application found for this student.
{% endif %}
Course Content Access
{% if enrollment.content_access_override == 'enabled' %} Force Enabled {% elif enrollment.content_access_override == 'disabled' %} Force Disabled {% else %} Default (Payment Threshold) {% endif %}

Controls whether this student can access course content regardless of payment status. Default uses the program's payment threshold. Force Enabled bypasses the payment gate. Force Disabled locks content even if fees are fully paid.

{% csrf_token %}
Payment History
Record Payment
{% for payment in payments %}
{{ payment.get_payment_type_display }}
{{ payment.get_term_display }}  ·  {{ payment.academic_year }}  ·  {{ payment.get_payment_method_display }}
{% if payment.reference %}
Ref: {{ payment.reference }}
{% endif %}
UGX {{ payment.amount|floatformat:0 }}
{{ payment.payment_date|date:"d M Y" }}
{% empty %}
No payments recorded yet.
{% endfor %} {% if payments %}
Total Paid: UGX {{ payment_total|floatformat:0 }}
{% endif %}
{% for cert in certificates %}
{{ enrollment.program.get_level_display }}
{{ enrollment.program.name }}  ·  {{ cert.academic_year }}
{% if cert.certificate_number %}
No: {{ cert.certificate_number }}
{% endif %}
{{ cert.issue_date|date:"d M Y" }}
{% empty %}
No certificates recorded yet.
{% endfor %}
{% endblock %}