{% comment %} A button (or dropdown
  • ) that opens a system Job's form in the shared generic modal via HTMX. Shared by the export and import list-view buttons; the HTMX wiring itself is built once in Python by `_JobModalButton.build_trigger_context()`. Expected context: trigger_url - URL to hx-post to (the Job's run-by-class-path view) trigger_hx_vals - JSON-encoded hx-vals for that post list_element - render as a dropdown
  • rather than a standalone button button_class - btn-* class to use when not a list element button_id - optional id attribute for the button icon - mdi icon name, e.g. "mdi-database-export" label - button text when rendered standalone list_label - button text when rendered as a dropdown item title - optional tooltip, for a trigger whose label does not say enough on its own disabled - user may not run this Job, or it is not enabled disabled_title - tooltip explaining why it is disabled {% endcomment %} {% if list_element %}
  • {% endif %} {% if list_element %}
  • {% endif %}