<div class="ui-dialog-maxheight-scroll">
    <ul id="corr_att_sel_plan_ul">
        {foreach from=$drawings_list item=drawing}
            {if !empty($drawing->cad_file)}
                <li onclick="correspondence.attachment.attach_plan({$drawing->id}, 'cad');" class="dialog_make_text_btn ui-corner-all">
                    <span class="dialog_make_btn16 ok ui-corner-all"></span>
                    {$drawing->drawing_plan_info} - 
                    {$i.drawings_cad_file_short}:
                    {$drawing->cad_file}
                </li>
            {/if}
            {if !empty($drawing->plot_file)}
                <li onclick="correspondence.attachment.attach_plan({$drawing->id}, 'plot');" class="dialog_make_text_btn ui-corner-all">
                    <span class="dialog_make_btn16 ok ui-corner-all"></span>
                    {$drawing->drawing_plan_info} - 
                    {$i.drawings_plot_file_short}:
                    {$drawing->plot_file}
                </li>
            {/if}
        {foreachelse}
            <li>{$i.basic_no_result1}</li>
        {/foreach}
    </ul>
</div>
