{# Render one icon button per row action. Options: - `table` (types.TableDefinition) - table definition. - `row` (types.Row) - row data. - `initial_row` (types.Row) - row data before formatters. - `column` (types.ColumnDefinition) - column definition. #} {% from "macros/form/attributes.html" import attributes %}
{% for action in table.row_actions %} {% set disabled_reason = action.get_disabled_reason(initial_row) %} {% set action_attrs = dict(action.attrs, **{'class': ('btn btn-sm btn-secondary btn-row-action ' ~ action.attrs.get('class', '')).strip()}) %} {% endfor %}