{# customhome/templates/customhome/previous_appointments.html #} {% extends "core/base.html" %} {% load static %} {% block title %}Previous Appointments & Feedback{% endblock %} {%block stylesheet %} {% endblock %} {% block content %}

Previous Appointments & Feedback

{# Button to open feedback form popup for the latest appointment #} {% if appointments_data and appointments_data|length > 0 %} {% with current=appointments_data.0.appointment %} {% endwith %} {% endif %} {% if appointments_data %} {% for data in appointments_data %}

Appointment on {{ data.appointment.appointment_date|date:"d M Y" }}

Time: {{ data.appointment.appointment_time }}

Description: {{ data.appointment.short_description }}

Status: {{ data.appointment.status }}

View Document: {% if data.appointment.id_proof_documents != "" %} {{ data.appointment.id_proof_documents.name|cut:"documents/" }} {% else %} No Document Uploaded {% endif %}

Feedbacks:
{% if data.feedback_list %} {% for feedback in data.feedback_list %}

Feedback: {{ feedback.feedback }}

Outcome: {{ feedback.outcome }}

Internal Notes: {{ feedback.internal_notes }}

{% endfor %} {% else %}

No feedback available.

{% endif %}
{% endfor %} {% else %}

No appointments available.

{% endif %}
{% comment %}