{% comment %} FSM Updated Row Partial Template Generic template for rendering an updated table row after an FSM transition. Used as the default response template for FSMTransitionView. Required context: - object: The FSM-enabled model instance - user: The current user (usually request.user) Optional context: - transition_success: Whether a transition just succeeded - success_message: Success message to display (handled by toast) - show_actions: Whether to show action buttons (defaults to true) - row_class: Additional CSS classes for the row {% endcomment %} {% load fsm_tags %} {% with status=object|get_state_value %} {% endwith %} {{ object|get_state_display }}
{{ object }}
{% if object.created_at %}
{{ object.created_at|date:"M d, Y H:i" }}
{% endif %} {% if show_actions|default:True %} {% include 'htmx/state_actions.html' with object=object user=user button_size='sm' inline=True %} {% endif %} {% comment %} CSS for flash animation - add to your CSS file or include inline: @keyframes flash-success { 0%, 100% { background-color: transparent; } 50% { background-color: rgba(34, 197, 94, 0.2); } } .animate-flash-success { animation: flash-success 1s ease-in-out; } {% endcomment %}