{% load seizou_icons %} {# 効いている絞りの札と「絞りを外す」(BaseListView.filter_chips。本人の決め 11-05 16:2x。開発の記録 docs/nights/20261105/N161.md)。core/list.html が絞り込みの枠の下に置く。札が無いときは空の箱だけ (行の部分の応答の oob の行き先)。キーワード・件数・並び替えは札にせず、「絞りを外す」も残す。 #} {# 札の × はその絞りだけを、右端の「絞りを外す」は枠の絞りを全部外した GET で、一覧の枠 (#list-card) を取り直す (土台は HX-Target が list-card の要求に画面の全体を返し、htmx が hx-select で枠だけを入れ替える = 欄・タブ・札・表がそろう)。 #} {# 行の部分の応答では core/_rows.html などが oob=True で描き直す。そのとき、ほかの絞りに従う印 (FilterSpec の disabled_when) も core/_filter_flag.html で描き直す (状態を選ぶと印が切になる形と表を合わせる)。期間の近道の箱 (core/_date_presets.html) も描き直し、欄の値と同じ近道の選んだ印を合わせる。 #}
{% if filter_chips %}
{% for chip in filter_chips %}{% if chip.heading %}{{ chip.heading }}: {% endif %}{{ chip.text }}{% icon "x" "size-3" %} {% endfor %}{% icon "x" "size-4" %}絞りを外す
{% endif %}
{% if oob %}{% for f in filters %}{% if f.follows %}{% include "core/_filter_flag.html" %}{% endif %}{% if f.kind == "date_range" %}{% include "core/_date_presets.html" %}{% endif %}{% endfor %}{% endif %}