{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Plan shifts" %}{% endblock %} {% block content %}

{% translate "Plan shifts" %}

{% blocktranslate trimmed with start=monday|date:"j M" end=sunday|date:"j M Y" %}Week of {{ start }} to {{ end }}.{% endblocktranslate %} {% translate "Choose Day, Night or both for each person and day, then save." %}

‹ {{ prev_week|date:"j M" }} {{ next_week|date:"j M" }} › {% if has_last_week %}
{% csrf_token %}
{% endif %}
{% csrf_token %} {% if form and form.errors %}
{% translate "Some details need fixing. Look for the red notes below." %}
{% endif %}

{% translate "Shift times" %}

{% translate "These times apply to every week. A night shift ends the next morning." %}
{% if form %}
{% include "_field.html" with field=form.day_starts %} {% include "_field.html" with field=form.day_ends %} {% include "_field.html" with field=form.night_starts %} {% include "_field.html" with field=form.night_ends %}
{% else %}

{% blocktranslate trimmed with ds=times.day_starts|time:"H:i" de=times.day_ends|time:"H:i" ns=times.night_starts|time:"H:i" ne=times.night_ends|time:"H:i" %}Day shift {{ ds }}–{{ de }}, night shift {{ ns }}–{{ ne }}.{% endblocktranslate %} {% translate "Only administrators change these times." %}

{% endif %}
{% if matrix %}
{% for d in days %}{% endfor %} {% for row in matrix %} {% for c in row.cells %} {% endfor %} {% endfor %} {% for t in totals %}{% endfor %}
{% translate "Name" %}{{ d|date:"D" }}{{ d|date:"j M" }}{% translate "Shifts" %}
{{ row.person.display_name }}{% if row.person.is_superuser %}{% translate "Administrator" %}{% else %}{{ row.person.get_role_display }}{% endif %}{{ row.count }}
{% translate "On shift" %}{% translate "Day" context "shift" %} {{ t.day }}
{% translate "Night" context "shift" %} {{ t.night }}
{% else %}
{% translate "No one to put on shifts yet." %}{% translate "Add agents and supervisors on the Team page first." %}
{% endif %}
{% translate "Cancel" %}
{% endblock %}