{% load seizou_tags seizou_icons purchasing_tags %}{% live_state row.obj as live %}{% comment %} 発注の一覧の 1 行。欄の描き方は core/_rows.html の既定と同じ (日付の枡は曜日の 1 字を添える = 決め N132。W04 の直し 11-07)。live.token = 状態の字 (tr の属性に入れる)、live.changed = 前の更新と字が違う (purchasing_tags の live_state)。 色は表の縞の色より前に出すため、行でなく欄に付ける (connect/_inbox_row.html と同じ)。 右端の欄は「要点を見る」の目の印 (土台の目の印の部品を include する。押すと発注の小窓。受注と指示書の一覧の行と同じ形)。 {% endcomment %} {% for cell in row.cells %} {% if forloop.first and row.url and not cell.numeric and not cell.master %}{% if cell.datetime %}{{ cell.value|date:"Y-m-d H:i" }}{% elif cell.date %}{{ cell.value|date:"Y-m-d" }}{% with day=cell.value|weekday_ja %}{% if day %} ({{ day }}){% endif %}{% endwith %}{% else %}{{ cell.value|default_if_none:"" }}{% endif %} {% elif cell.numeric %}{% if cell.master %}{% master_link cell.master cell.value %}{% elif cell.negative %}{{ cell.value|yen_if:cell.money }}{% else %}{{ cell.value|yen_if:cell.money }}{% endif %} {% elif cell.date or cell.datetime %}{% if cell.datetime %}{{ cell.value|date:"Y-m-d H:i" }}{% else %}{{ cell.value|date:"Y-m-d" }}{% with day=cell.value|weekday_ja %}{% if day %} ({{ day }}){% endif %}{% endwith %}{% endif %} {% elif cell.master %}{% master_link cell.master cell.value %} {% elif cell.status %}{% status_badge row.obj %} {% elif cell.boolean %}{% bool_mark cell.value %} {% else %}{{ cell.value|default_if_none:"" }} {% endif %} {% endfor %} {# 右端の「要点」の列 (purchasing/_rows.html が土台に actions_label を渡して見出しを出す)。目の印を押すと発注の小窓 (PurchaseOrderModalView) を開く。前の更新と違う行の欄の色はこの欄に付けない。 #} {% url 'purchasing:purchaseorder_modal' row.pk as modal_url %}{% include "core/_row_summary_link.html" with modal_url=modal_url detail_url=row.url %}