{# billing の入力の小窓の中身 (開発の記録 docs/nights/20261105/N158b.md)。入力の土台は小窓のテンプレートを app ごとに選ぶ (billing/_form_modal.html → core/_form_modal.html) ので、画面の URL の名前で出し分ける。 #} {# 請求書の取消・入金の取消・入金の記録・調整の記録・調整の取消は、全体の画面と同じカード (billing/__card.html) を form_card で渡す。ほかの入力 (請求書作成) は土台の小窓のまま。 #} {# 調整の 2 つは 510 回目に足した (N409b は、このファイルが触ってよい物の外だったので、画面の全体で開く形にしていた)。入金と同じく、請求書の詳細を離れずに記録して取り消せる。 #} {% with url_name=request.resolver_match.url_name %}{% if url_name == "invoice_cancel" %}{% include "core/_form_modal.html" with form_card="billing/_invoice_cancel_card.html" %}{% elif url_name == "payment_cancel" %}{% include "core/_form_modal.html" with form_card="billing/_payment_cancel_card.html" %}{% elif url_name == "payment_create" %}{% include "core/_form_modal.html" with form_card="billing/_payment_create_card.html" %}{% elif url_name == "adjustment_create" %}{% include "core/_form_modal.html" with form_card="billing/_adjustment_create_card.html" %}{% elif url_name == "adjustment_cancel" %}{% include "core/_form_modal.html" with form_card="billing/_adjustment_cancel_card.html" %}{% else %}{% include "core/_form_modal.html" %}{% endif %}{% endwith %}