{% load mathfilters %}
{% if not types %} {% include 'ibs/partials/no_data.html' %} {% else %} {% for dong in dong_list %} {# 동 수만큼 반복 #}
{% with line_list=total_lines.pop units=units.pop w=38 h=18 f=10 %}
{% for unit in units %} {% if 1 == 2 %} {# 상층부 1~ 호라인 등 공백 로직 구현 #}
{% endif %} {% if unit.floor_no == 1 %} {# 피로티 로직 구현 #} {% with lp=line_list.pop %} {% with fl=forloop.counter|sub:lp fu=forloop.counter|sub:unit.bldg_line %} {% with n=fl|sub:fu %} {% if n > 0 %} {% ifchanged n %} {% for i in 'a'|mul:n %}
{% endfor %} {% endifchanged %} {% endif %} {% endwith %} {% endwith %} {% endwith %} {% endif %} {% if forloop.last %} {# 필로티 로직 추가 #} {% for i in line_list %} {% if i > unit.bldg_line %}
{% endif %} {% endfor %} {% endif %} {% endfor %} {% endwith %}
{{ dong }}
{% endfor %} {% endif %}