Group search form template does not add Datatables CSS classes (DT_RowClass)
Overview
As noted in a TODO, the Group search form template does not use jquery.datatables for loading child rows. That might be ok, since it's working without it, but there are CSS classes in each response.data.DT_RowClass
and maybe other properties that are not being injected into the template.
This makes it difficult to distinguish nested groups from their parents and subsequent non-nested groups, since the CSS class crm-group-child
(which actually has CSS for visual nesting, see here) is being added to the DT_RowClass
attribute here, but that is not added to the actual markup.
Reproduction steps
- Click on Contacts -> Manage Groups.
- Add a nested group
- Expand the parent group to see the nested group
Current behaviour
There is no indentiation, making the nested group not be visually distinguishable from neither its parent group (ok, the parent has a triangle) nor any subsequent groups that are not nested within the same parent group.
Expected behaviour
Nested groups should be visually distinguishable by indenting them.
It should be enough to add DT_RowClass
to the markup for now, but using jquery.datatables would be the real solution, I guess.
Environment information
Can be reproduced on dmaster.