{% extends 'base.html' %} {% load static %} {% block title %}{{ team.name }} | Teams | Fox Fitt{% endblock %} {% block content %} {# === TEAM DETAIL PAGE === Admin-only, read-only view with 4 tabs: Profile · Pay Schedule · Workers · History. #}
{{ current_period.0|date:"d M Y" }} — {{ current_period.1|date:"d M Y" }}
{% if upcoming_periods %}Pay periods are calculated from the anchor date ({{ team.pay_start_date|date:"d M Y" }}) stepping forward by {{ team.get_pay_frequency_display|lower }} intervals.
{% else %}This team has no pay schedule configured.
To enable pay period calculations, edit the team and set both Pay Frequency (weekly/fortnightly/monthly) and Pay Start Date.
Set up pay schedule {% endif %}| Name | ID Number | Monthly Salary | Daily Rate | Status |
|---|---|---|---|---|
| {{ w.name }} | {{ w.id_number }} | R {{ w.monthly_salary|floatformat:2 }} | R {{ w.daily_rate|floatformat:2 }} | {% if w.active %} Active {% else %} Inactive {% endif %} |
| No workers assigned to this team yet. | ||||
| Date | Project | Workers | Supervisor |
|---|---|---|---|
| {{ log.date|date:"d M Y" }} | {{ log.project.name }} | {{ log.workers.count }} | {% if log.supervisor %} {{ log.supervisor.username }} {% else %} — {% endif %} |
| No work logs yet. | |||