{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{foreach $customergrouplist as $customergroup} {foreachelse} {/foreach}
{icon name="customergroup"} {trans("Name:")}
{icon name="optional-info"} {trans("Description:")}
{trans("ID:")} {trans("Members:")} {button icon="customergroup" label="Add group" href="?m=customergroupadd"}
{t a=$listdata.total|default:"0"}Total: $a{/t}
{icon name="info"} {trans("Total:")} {$listdata.totalcount|default:"0"}
{icon name="customergroup"} {$customergroup.name}
{if $customergroup.description}{icon name="optional-info"} {$customergroup.description|escape|replace:"\n":"
"}{/if}
({$customergroup.id|string_format:"%04d"}) {$customergroup.customerscount} {if $customergroup.customerscount} {button type="link" class="delete-group-alert" icon="delete" tip="Delete"} {else} {button type="link" class="delete-group" icon="delete" tip="Delete" data_customer_group_id=$customergroup.id} {/if} {button type="link" icon="edit" tip="Edit" href="?m=customergroupedit&id={$customergroup.id}"} {button type="link" icon="info" tip="Info" href="?m=customergroupinfo&id={$customergroup.id}"}
{trans("There are no such groups in database.")}
{/block}