Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #6720 Allow customize entity row attributes on index page (zo…
…rn-v) This PR was merged into the 4.x branch. Discussion ---------- Allow customize entity row attributes on index page In my project I need to highlight entity rows with different colors based on entity status. Currently I need to copy all `table_body` just for add css class to row like `class="status-row status-row-{{ entity.instance.status.name|lower }}"` With this patch I just need to add this in overrided template ```twig {% block entity_row_attributes %} class="status-row status-row-{{ entity.instance.status.name|lower }}" {% endblock %} ``` PS. After updating from 4.13, currently I need to update all my custom templates with this logic as `table_body` was changed. Commits ------- ad6fd11 Allow customize entity row attributes on index page
- Loading branch information