{% load seizou_icons %} {# 明細の 1 行 (row は formset の 1 つの form)。行の誤りは欄の下 (赤)。欄の案内 (今ある明細の単位が一覧に無い字のとき) は欄の下 (灰)。既にある明細を指す隠しの欄は最後の列に置く。 #} {# 単価の枡の中に、単価の欄の下に見積の番号の欄と「単価表から選ぶ」(masters/_price_pick_dialog.html の小窓。部品が空の行は押せない形。C100)。 #} {% for field in row.visible_fields %}{% if field.name != "DELETE" and field.name != "quote_no" %} {{ field }} {% if field.errors %}

{% icon "alert" "size-4" %}{{ field.errors|join:" " }}

{% endif %} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% if field.name == "unit_price" %} {% if row.quote_no %}
{{ row.quote_no }}{% if row.quote_no.errors %}

{% icon "alert" "size-4" %}{{ row.quote_no.errors|join:" " }}

{% endif %}
{% endif %} {% endif %} {% if field.name == "unit_price" %}{% endif %} {% endif %}{% endfor %} {% if row.DELETE %}{% endif %} {% for hidden in row.hidden_fields %}{{ hidden }}{% if hidden.errors %}

{% icon "alert" "size-4" %}{{ hidden.errors|join:" " }}

{% endif %}{% endfor %} {% if row.non_field_errors %}

{% icon "alert" "size-4" %}{{ row.non_field_errors|join:" " }}

{% endif %}