<form id="addressesandcontacts_upload_form" onsubmit="return false;" action="">
    {include file="r/hidden.tpl" name="addressesandcontacts_upload_file_name" default=$file_name}
    
    {if $has_right}
    <fieldset class="noborder sepnext">
        <legend>{$i.addresses_import_derive}:</legend>
        {include file='r/checkbox.tpl' name="addressesandcontacts_derive_comp_supp" title="addresses_comp_supp" default=true}
        {include file='r/checkbox.tpl' name="addressesandcontacts_derive_phone1" title="addresses_phone1" default=true}
        {include file='r/checkbox.tpl' name="addressesandcontacts_derive_fax" title="addresses_fax" default=true}
    </fieldset>
    {/if}

{if $addresses_count>2}<h3 style="padding:20px;">{$addresses_count} {$i.basic_row2n}</h3>{/if}
    
{if isset($addr_import_data_list_full)}
    {include file='r_forms/tableeditpop.tpl'
        list=$addr_import_data_list_full
        header=$addr_import_header_full
        whatview=$addr_import_whatview_full
        tabname='addressesandcontacts_upload_full'
        no_rows_msg=$i.addresses_nothing
        group_by='name'
        hide_edtp_btn=false
        reportname=$file_name}
    </form>
    <h3 style="padding:40px;">{$i.addresses_import_many_short}</h3>
{/if}

{include file='r_forms/tableeditpop.tpl'
    list=$addr_import_data_list
    header=$addr_import_header
    whatview=$addr_import_whatview
    tabname='addressesandcontacts_upload'
    no_rows_msg=$i.addresses_nothing
    group_by='name'
    hide_edtp_btn=false
    reportname=$file_name}
    <style type="text/css" scoped>
        #edtp-tbody-addressesandcontacts_upload .edtp-col-25::first-line {
            background: linear-gradient(rgba(250,150,140,0.1) 0%, rgba(240,140,160,0.2) 10px, rgba(235, 135, 180, 0.25) 100%);
        }
    </style>
</form>