{% extends 'base.html' %} {% block title %}Repairs{% endblock %} {% block content %}

Repair Requests

{% if user.role == 'tenant' %} New Request {% endif %}
{% for repair in repairs %} {% empty %} {% endfor %}
Tenant Unit Issue Status Cost Date Actions
{{ repair.tenant.username }} {{ repair.unit.name }} {{ repair.issue|truncatechars:40 }} {{ repair.status|title }} {% if repair.cost %} KES {{ repair.cost }} {% else %} - {% endif %} {{ repair.created_at|date:"M d, Y" }}
{% if user.role == 'caretaker' and repair.status == 'pending' %} Approve Reject {% endif %} {% if user.role == 'landlord' and repair.status == 'approved' %} Add Cost {% endif %}
No repair requests found
{% endblock %}