{# Publish/unpublish toggle action button (eye / eye-off icon). Params: - id (string, required) — entity id, passed to togglePublish(id) - published (bool, required) #} {% include 'components/admin/_icon_action_button.html.twig' with { tag: 'button', onclick: 'togglePublish(\'' ~ id ~ '\')', class: 'btn-toggle', tooltip: published ? 'Dépublier' : 'Publier', icon: published ? 'eye-off' : 'eye', } only %}