{% load complex_extra %} {% if current.is_composite %}
{% if not flatten and current.level > 0 %}
{{ current.label|default:current.name|default:"" }}
{% endif %}
{% for sub_block in current.sub_blocks %}
{% include "complexsignup/shift_state_block.html" with current=sub_block %}
{% endfor %}
{% else %}
{{ current.label|default:current.name|default:"" }} #{{ current.number }} {{ current.signup_stats|format_min_max_count }} {{ current.qualification_label }} {% if not current|has_complex_free:shift %} {% elif current.signup_stats.missing <= 0 %} {% else %} {% endif %}
{% for pos in current.positions %} {% with matching|find_complex_participation:pos.id as participation %} {% if participation is not None %} {% include "baseshiftstructures/participation_card_inline.html" %} {% elif pos.required %}   {{ pos.label }} {% endif %} {% endwith %} {% endfor %} {% if not current.positions or current.optional %} {# show a transparent box as vertical whitespace #}   {% endif %}
{% endif %}