<table class="col2btn">
    <tr>
        <td>{$i.drawings_project}</td>
        <td>{$drawing->project}</td>
    </tr>
    {if $drawing->drawing_plan_no neq ''}
        <tr>
            <td>{$i.drawings_inout_plan_no}</td>
            <td>{$drawing->drawing_plan_no}</td>
        </tr>
    {/if}
    {if $drawing->drawing_plan_info neq ''}
        <tr>
            <td>{$i.drawings_inout_plan_info}</td>
            <td>{$drawing->drawing_plan_info}</td>
        </tr>
    {/if}
    <tr>
        <td>{$i.drawings_inout_dn_id}</td>
        <td>
            {if !empty($drawing->transmittal_form_id)}
                <div class="many">
                    <p>
                        <a class="smallbtns"
                            href="{site_url url="start/open/drawingandproductdirectory/index/$xjxcookie/viewdn/{$drawing->transmittal_form_id}/"}"
                            onclick="drawings_delivery_note.hover_update_do({$drawing->transmittal_form_id}); return false;"
                            >{$drawing->transmittal_form_name|truncate:80:"..."}</a>
                    </p>
                </div>
            {else}
                {boolview value=false}
            {/if}
        </td>
    </tr>
    {if $drawing->amount>0}
        <tr>
            <td>{$i.drawings_inout_amount}</td>
            <td>{$drawing->amount}</td>
        </tr>
    {/if}
    {if !empty($drawing->date) && !$drawing->date->is_null()}
        <tr>
            <td>{$i.drawings_inout_date_out}</td>
            <td>{$drawing->date->us_date()}</td>
        </tr>
    {/if}
    {if $drawing->purpose neq ''}
        <tr>
            <td>{$i.drawings_inout_purpose}</td>
            <td>{$drawing->purpose}</td>
        </tr>
    {/if}
    <!-- LS Nr. not implemeted now @todo CW: implement-->
    {if $drawing->drawing_type_name neq ''}
        <tr>
            <td>{$i.drawings_inout_type}</td>
            <td>{$drawing->drawing_type_name}</td>
        </tr>
    {/if}
    {if $drawing->drawing_cad_file_path neq ''}
        <tr>
            <td>{$i.drawings_cad_file}</td>
            <td>
                {filelink type="filefrstbtn" value=$drawing->drawing_cad_file_path}
            </td>
        </tr>
    {/if}
    {if $drawing->drawing_plot_file_path neq ''}
        <tr>
            <td>{$i.drawings_plot_file}</td>
            <td>
                {filelink type="filefrstbtn" value=$drawing->drawing_plot_file_path}
            </td>
        </tr>
    {/if}
    
    <tr>
        <td>{$i.basic_created_date}</td>
        <td>{$drawing->created_date->us_date()}</td>
    </tr>
    <tr>
        <td>{$i.basic_created_by}</td>
        <td>{$drawing->created_by_name}</td>
    </tr>
    <tr>
        <td>{$i.basic_change_date}</td>
        <td>{$drawing->change_date->us_date()}</td>
    </tr>
    <tr>
        <td>{$i.basic_changed_by}</td>
        <td>{$drawing->changed_by_name}</td>
    </tr>
</table>