{foreach $list->structs as $struct}
    <optgroup title="{$struct->name|escape:'html'}" label="{if $sublevel>0}&#8226;{/if} {$struct->name|truncate:100|escape:'html'}" style="padding-left: {$sublevel*14}px;">
        {include file='r/parts/input-corresondence_type_options.tpl' list=$struct}
    </optgroup>
    {include file='r/parts/input-corresondence_type_sub.tpl' list=$struct sublevel=$sublevel+1}
{/foreach}
