{% extends 'base.html' %} {% load format_tags %} {% block title %}Workers | FoxFitt{% endblock %} {% block content %}

Workers

{{ total_count }} worker{{ total_count|pluralize }} {% if q %} matching "{{ q }}"{% endif %} {% if status != 'all' %} — {{ status|capfirst }} only{% endif %}

{# === Pay-type filter === #} {# DB values are 'daily'/'fixed' (Path-A); label is friendly. #} {# Empty value = 'All pay types' (unchanged default view). #}
{% if workers %}
{% for w in workers %} {% endfor %}
Name ID Number Type Phone Salary Days Worked Active Actions
{{ w.name }} {{ w.id_number }} {# Pay-type indicator — managers/salaried staff are #} {# paid a monthly Salary, not per logged work day. #} {% if w.is_salaried %} Manager / Salaried {% else %} Daily {% endif %} {{ w.phone_number|default:'—' }} R {{ w.monthly_salary|money }} {{ w.days_worked }} {% if w.active %} Active {% else %} Inactive {% endif %}
{% else %}

No workers{% if q %} match "{{ q }}"{% endif %}. {% if q or status != 'active' or team_filter or pay_type_filter %}
Clear filters{% endif %}

{% endif %}
{% endblock %}