{% extends 'base.html' %} {% load format_tags %} {% block title %}{% if is_new %}Add Team{% else %}Edit {{ team.name }}{% endif %} | FoxFitt{% endblock %} {% block content %}

{% if is_new %}Add Team{% else %}Edit {{ team.name }}{% endif %}

{% if is_new %}Give the team a name; supervisor and workers are optional but recommended. {% else %}Update any section and Save.{% endif %}

{% if form.errors %}
Please fix the errors below. {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% endif %}
{% csrf_token %}
Team Basics
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors|first }}
{% endif %}
{{ form.supervisor }}
{{ form.active }}
Pay Schedule

Optional. If set, payroll calculations use this schedule to determine pay periods. Leave both blank if this team doesn't have a fixed schedule.

{{ form.pay_frequency }}
{{ form.pay_start_date }}
Workers

Tick workers to include in this team. Inactive workers are marked with a grey badge — you can still select them.

{% for choice in form.workers %}
{{ choice.tag }}
{% endfor %}
Cancel
{% endblock %}