{% load seizou_tags %} {# フィードバックの一覧の 1 行 (feedback/_rows.html が core/_rows.html の row_template で include する)。context: row (土台の row_for の 1 行。obj は Feedback)・columns。 #} {# 欄の描き方は core/_rows.html と同じ (最初の欄は詳細への link)。状態の列 (列の名前 status) は状態の色の表 (core.status_colors) の印にする (開発の記録 docs/nights/20261105/N152.md)。class は要素ごとの固定の字。 #} {% for cell in row.cells %} {% for col in columns %}{% if forloop.counter0 == forloop.parentloop.counter0 %} {% if forloop.parentloop.first %}{% if cell.datetime %}{{ cell.value|date:"Y-m-d H:i" }}{% else %}{{ cell.value|default_if_none:"" }}{% endif %} {% elif col.name == "status" %}{% status_badge row.obj %} {% elif cell.numeric %}{{ cell.value|yen_if:cell.money }} {% elif cell.datetime %}{{ cell.value|date:"Y-m-d H:i" }} {% elif cell.date %}{{ cell.value|date:"Y-m-d" }} {% elif cell.boolean %}{% bool_mark cell.value %} {% else %}{{ cell.value|default_if_none:"" }} {% endif %} {% endif %}{% endfor %} {% endfor %}