{{ w.name }}
— {{ w.site }}{% if w.grade %} · grade {{ w.grade }}{% endif %} · FTE {{ w.fte }}
{# show non-working days stored in options.nwds if present; render JSON safely and let JS format it #}
{% if w.options.nwds %}
{% with script_id='nwds-data-'|add:w.id %}
{{ w.options.nwds|default:"[]"|json_script:script_id }}
{% endwith %}
{% endif %}
{# Show worker-specific constraint snippets (compact tags with hover details) #}
{% if w.options.hard_day_exclusions or w.options.hard_day_dependencies or w.options.forced_assignments or w.options.forced_assignments_by_date or w.options.allowed_multi_shift_sets %}
{% for it in w.options.hard_day_exclusions %}
HDE
{% endfor %}
{% for it in w.options.hard_day_dependencies %}
HDD
{% endfor %}
{% for it in w.options.forced_assignments %}
FA
{% endfor %}
{% for it in w.options.forced_assignments_by_date %}
FAD
{% endfor %}
{% for it in w.options.allowed_multi_shift_sets %}
AMS
{% endfor %}
{% endif %}