{if !isset($rep_name_id)}{$rep_name_id=''}{/if}
<div>
{include file='r/select.tpl' name="`$name`__address_categories" title="filter_address_categories"
    list=$data.address_categories id="id" text="name" noempty=TRUE
    default=$data.address_category_default deactivate=$data.address_category_deactivate
    collapse="formcoll" class="required t-mid hide-id:`$rep_name_id``$name`__address_group"}
    
    
{include file='r/ajaxselect.tpl' name="`$name`__address_group" title="filter_address_group"
    default_id=$data.address_group_default default=$data.address_group_default_name
    deactivate=$data.address_group_deactivate
    filter_extra_hidden='onchange="$(this).closest(\'form\').submit();"'
    class="addressgrpselect fulltext_search t-mid hide-id:{$name}__address_categories" collapse='formcoll'}

    
{*{include file='r/select.tpl' name="`$name`__address_group" title="filter_address_group"
    list=$data.address_groups id="id" text="name" group_by="project" group_by_list=$data.address_groups_groups noempty=TRUE
    default=$data.address_group_default deactivate=$data.address_group_deactivate
    collapse="formcoll" class="required t-mid hide-id:`$name`__address_categories"}*}
</div>