{% extends "core/base.html" %} {% load seizou_tags seizou_icons %} {% block content %} {# 横断の検索: 上のカードに言葉の欄・種類の chip・得意先の選択。下に種類ごとのカード (一覧と同じ表)。読むだけの画面。 #} {# 欄の案内は上の帯の欄 (core/_topbar.html) と同じ字と同じ書き分け。細かい項目は下の「探した項目」の 1 行に出す (作者の決め)。 #} {% if query and searched_fields %} {# 探した項目: 種類ごとに、探した項目の見出し (部品の search_labels)。結果の表の上にも、0 件の箱の上にも出す (作者の決め)。 #}

探した項目{% for scope in searched_fields %}{% if not forloop.first %} / {% endif %}{{ scope.label }}: {{ scope.fields }}{% endfor %}

{% endif %} {% if not query %} {# 何も入れていない: 絵と 1 文と補足 (core/list.html の空の一覧と同じ書き方)。 #}
{% icon "search" "size-6" %}

キーワードを入れて検索してください

{% if kind_labels %}{{ kind_labels }}をまとめて探します。{% endif %}言葉の一部だけでも見つかります。

{% elif not sections %}
{% icon "search" "size-6" %}

該当する物はありません。

「{{ query }}」で探しました。言葉を短くするか、種類と得意先の絞り込みを外してください。

{% else %} {% for section in sections %}

{{ section.label }} ({{ section.total|comma }})

{# 表の箱を包む要素。箱の印 (data-scroll-hint) を見る JS がこの要素に印を付け、この要素の中に「→」のボタンを作る (右の端は作者の決め。下の端はいつも見えるバー = 作者の決め。影は 11-07 の決めでやめた)。 #}
{% for col in section.columns %}{% endfor %} {% for row in section.rows %} {% for cell in row.cells %} {% if forloop.first and row.url %} {% elif cell.numeric %} {% elif cell.date or cell.datetime %} {% elif cell.master %} {% elif cell.boolean %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ col.label }}
{{ cell.value|default_if_none:"" }}{% if row.match %}{{ row.match.label }}: {{ row.match.before }}{{ row.match.hit }}{{ row.match.after }}{% endif %}{% if 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" }}{% endif %}{% master_link cell.master %}{% bool_mark cell.value %}{{ cell.value|default_if_none:"" }}

{{ section.total|comma }} 件中 1–{{ section.shown|comma }} 件{% if section.more %}。絞り込んでください (1 種類 {{ limit }} 件まで出します){% endif %}

{% endfor %} {% endif %} {% endblock %}