{% extends "rota/base.html" %} {% block title %}{{ ref.template.name }}{% endblock %} {% block content %}

← Back to rota

{{ ref.template.name }} {{ ref.skill.name }} #{{ ref.index|add:1 }}

{{ ref.template.location.name }} · {{ start }} – {{ end }} ({{ slot.hours|floatformat:"-1" }}h)

Current assignment

{% if current %}

{{ current.name }} {% if assignment.locked %}locked{% endif %}

{% csrf_token %}
{% if breakdown %}

Score contribution

{% for k, v in breakdown.items %}{% endfor %}
{{ k }}{{ v|floatformat:2 }}

Marginal change in the objective caused by this assignment (negative is good).

{% endif %} {% else %}

Nobody assigned.

{% endif %}

Reassign to an eligible employee

{% csrf_token %}

Override (breaks a rule)

{% csrf_token %}

Why others are ineligible

{% for c in ineligible %}{% empty %}{% endfor %}
{{ c.employee }}{{ c.code }}{{ c.reason }}
Everyone is eligible.
{% endblock %}