{% comment %} FSM State Actions Partial Template Renders available transition buttons for an FSM-enabled object. Uses HTMX for seamless state transitions with toast notifications. Required context: - object: The FSM-enabled model instance - user: The current user (usually request.user) Optional context: - target_id: The ID of the element to swap after transition (defaults to object-{{ object.id }}) - button_size: 'sm', 'md', or 'lg' (defaults to 'md') - show_labels: Whether to show button labels (defaults to true) - inline: Whether to render buttons inline (defaults to false) {% endcomment %} {% load fsm_tags %} {% get_available_transitions object user as transitions %} {% if transitions %}
{% for transition in transitions %} {% endfor %}
{% endif %}