{% load seizou_icons seizou_tags workorders_tags %} {# 指示書の小窓。core/_modal.html と同じ形 (題・項目・「閉じる」・「詳細を見る」) に、工程の並び (予定の日) を足す。実績は出さない。題の右に進みの状態の印 (詳細の題の横と同じ。項目の「状態」は出さない。作者の決め)。 #}

{{ object }}

{% workorder_badge object %}
{% for field in fields %}
{{ field.label }}
{% if field.boolean %}{% bool_mark field.value %}{% elif field.value is None or field.value == "" %}—{% else %}{{ field.value|yen_if:field.money }}{% endif %}
{% endfor %}

工程の並び

{% for step in object.steps.all %} {% endfor %}
順工程開始 → 終了
{{ step.seq }}{{ step.process.name }}{% if step.planned_start %}{{ step.planned_start|date:"n/j" }} → {{ step.planned_end|date:"n/j" }}{% else %}未計画{% endif %}