<form id="address_group_dialogs_add_addr_to_grp_form" style=""
    action=""  method="POST" enctype="multipart/form-data"
    onsubmit="">

    <div class="ui-dialog-left-menu-big ui-corner-all">
        <p style="text-align:center;">
            <span onclick="address_group_dialogs.close_add_addr_to_grp();" class="dialog_make_btn32 close smallbtns ui-corner-all" title="{$i.basic_cancel}"></span>
            <span onclick="address_group_dialogs.add_addr_to_grp();" class="dialog_make_btn32 ok smallbtns ui-corner-all" title="{$i.basic_save}"></span>
        </p>
    </div>
    <div class="ui-dialog-main-big">
        <fieldset class="borderbottom">
            {include file='r/ajaxselect.tpl' name="add_addr_to_grp_addr_grp_id" title="addresses_address_groups"
                default_id=$address_group_default default=$address_group_default_name
                class="required addressgrpselect fulltext_search t-mid"}
            {*{include file='r/select.tpl' name="add_addr_to_grp_addr_grp_id" title="addresses_address_groups"
                list=$addr_grps_list id="id" text="name" group_by="project" group_by_list=$addr_grps_list_groups noempty=TRUE
                class="required"}*}
        </fieldset>
        <div class="ui-dialog-maxheight-scroll" style="max-height:150px; margin-top:15px;">
            <h4>{$i.addresses_selected_address}</h4>
            <hr />
            <ul>
            {if isset($rows_count_info)}    
                <div class="warning warningborder ui-corner-all" style="color:red">
                    {$rows_count_info}
                </div>                
            {elseif isset($selected_addresses)}    
                {foreach item="selected_address" from=$selected_addresses}
                     <li class="dialog_make_text_btn ui-corner-all" onclick="basicForm.selectable_row.unselect_from_dlg('addressesandcontacts',{$selected_address->id}, this);">
                        <span class="dialog_make_btn16 delete ui-corner-all"></span>
                        {$selected_address->address_name}
                     </li>
                {/foreach}         
            {/if}         
            </ul>    
        </div>                    
    </div>
</form>