{% load seizou_tags seizou_icons %} {# 一覧の表の部分 (htmx はここだけを返す)。数は右寄せ・日付と識別子は等幅・長い字は省略して title に全文・行の高さは一定。 #} {# row_template: 1 行を描く template の名前 (無ければ下の欄の描き方)。actions_label: 最後の列の見出し (無ければ列を出さない)。include する側が with で渡す (connect の受信した注文)。 #} {% if rows %} {# 表の箱を包む要素。右に続きがあるときだけ、箱の印 (data-scroll-hint) を見る JS がこの要素に印を付け、この要素の中に「→」のボタンを作る (右の端の影はやめた。11-07 の決め)。 #}
{% for col in columns %}{% endfor %} {% if actions_label %}{% endif %} {% for row in rows %}{% if row_template %}{% include row_template %}{% else %} {% for cell in row.cells %} {% if forloop.first and row.url and not cell.numeric and not cell.master %} {% elif cell.numeric %} {% elif cell.date or cell.datetime %} {% elif cell.master %} {% elif cell.boolean %} {% elif cell.status %} {% else %} {% endif %} {% endfor %} {% endif %}{% endfor %} {% if totals %}{% for cell in totals %}{% endfor %}{% if actions_label %}{% endif %}{% endif %}
{% if col.sortable %}{{ col.label|without_yen_unit }}{% if sort == col.name %}{% icon "chevron-up" "size-4 text-primary" %}{% elif sort == col.desc_name %}{% icon "chevron-down" "size-4 text-primary" %}{% else %}{% icon "chevrons-up-down" "size-4 text-base-content/60" %}{% endif %}{% else %}{{ col.label|without_yen_unit }}{% endif %} {{ actions_label }}
{% 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 %}{% 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 %}{% 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 %}{% master_link cell.master cell.value %}{% bool_mark cell.value %}{% status_badge row.obj %}{{ cell.value|default_if_none:"" }}
{% if cell.numeric %}{{ cell.value|yen_if:cell.money }}{% elif forloop.first %}合計{% endif %}

{{ paginator.count|comma }} 件中 {{ page_obj.start_index|comma }}–{{ page_obj.end_index|comma }} 件

{% if paginator.num_pages > 1 %} {% endif %}
{% else %} {# 空の一覧: 絵と 1 文と次の操作 (主色のボタンは見出しの右の 1 つだけなので、ここは枠だけのボタン)。 #} {# 検索か札 (BaseListView.filter_chips) があれば、その字を 1 文に入れて「すべて外す」(一覧の枠を取り直す)。無ければ「まだ 1 件もありません。」(app の _rows.html が自分の文を出す一覧も、検索か絞りがある 0 件はここに任せる。開発の記録 docs/nights/20261105/N161.md)。 #}
{% if search_q or filter_chips %} {% icon "search" "size-6" %}

{% if search_q %}「{{ search_q }}」{% if filter_chips %}、{% endif %}{% endif %}{% for chip in filter_chips %}{{ chip.heading }}「{{ chip.text }}」{% if not forloop.last %}、{% endif %}{% endfor %}に合う物はありません。

言葉を短くするか、「すべて外す」で条件を全部外してください。

{% icon "x" "size-4" %}すべて外す {% else %} {% icon "inbox" "size-6" %}

まだ 1 件もありません。

{% if create_url %}

「新規登録」から 1 件目を登録します。

{% icon "plus" "size-4" %}新規登録{% endif %} {% endif %}
{% endif %} {% if partial %}{% include "core/_list_meta.html" with oob=True %}{% if filters %}{% include "core/_filter_clear.html" with oob=True %}{% endif %}{% endif %}