{# A trigger button that opens the generator modal (which must be included once via _generate_modal.html.twig). Expects `part` in scope. Optional `btn_class` overrides the styling. #} {% if part.id is not null and is_granted('edit', part) and is_granted('@tools.component_image_generator') %} {% endif %}