Skip to content

Commit 3ad1d63

Browse files
committed
Handle checkbox output in lists
1 parent dccecc3 commit 3ad1d63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

themes/simple/templates/modules/groups-roles.list.tpl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
{foreach $rows as $row}
2121
<tr id="{$row.id}" {if isset($row.class)}class="{$row.class}"{/if} {if isset($exportMode)}style="{$rowsStyle}"{/if}>
2222
{foreach $row.data as $key => $cell}
23-
<td {if isset($row.colspan)}colspan="{$row.colspan}"{/if} style="text-align:{$columnAlign[$key]};">{$cell}</td>
23+
{if $cell|is_array && $cell['order']|isset}
24+
<td {if isset($row.colspan)}colspan="{$row.colspan}"{/if} data-order="{$cell['order']}" style="text-align:{$columnAlign[$key]};">{$cell['value']}</td>
25+
{else}
26+
<td {if isset($row.colspan)}colspan="{$row.colspan}"{/if} style="text-align:{$columnAlign[$key]};">{$cell}</td>
27+
{/if}
2428
{/foreach}
2529
</tr>
2630
{/foreach}
2731
{/if}
2832
</tbody>
29-
</table>
33+
</table>

0 commit comments

Comments
 (0)