{css} {js}
{tab_container id="customergroups" label="Customer Groups"} {tab_header content_id="groupspanel"} {tab_header_cell icon="lms-ui-icon-cg"} {trans("Customer Groups")} {/tab_header_cell} {/tab_header} {tab_contents id="groupspanel"} {tab_table} {if $customergroups}
{trans("Name:")}
{trans("Description:")}
{trans("ID:")}
{trans("From")}
 
{/if} {foreach $customergroups as $customergroup}
{$customergroup.description|escape|default:"-"}
({$customergroup.id|string_format:"%04d"})
{if $customergroup.startdate} {$customergroup.startdate|date_format:"Y-m-d H:i"} {else} - {/if}
{if ConfigHelper::checkPrivilege("customer_group_assignments")} {textformat assign="onclick" wrap=5000} confirmDialog($t('Are you sure, you want to remove customer from group?'), this).done(function() { location.href = '?m=customergroup&customergroupid={$customergroup.id}&action=delete&id={$customerinfo.id}'; }); {/textformat} {button type="link" icon="delete" onclick=$onclick tip="Remove customer from group"} {/if}
{foreachelse}
{trans("That customer is not a member of any group.")}
{/foreach} {/tab_table} {tab_button_panel} {tab_buttons} {if ConfigHelper::checkPrivilege("customer_group_assignments")} {button icon="delete" label="Delete" id="delete-groups"} {if !empty($othercustomergroups)} {button icon="add" label="Add" id="add-groups" tip="Add customer to groups"} {button icon="reload" label="Replace" id="replace-groups" tip="Replace customer group assignments"} {/if} {/if} {/tab_buttons} {tab_buttons} {if ConfigHelper::checkPrivilege("customer_group_assignments")} {/if} {/tab_buttons} {/tab_button_panel} {/tab_contents} {/tab_container}