{block name='account-uploads'}
    {if !empty($Bestellung->oUpload_arr)}
        {assign var=nNameLength value=50}
        {assign var=nImageMaxWidth value=480}
        {assign var=nImageMaxHeight value=320}
        {assign var=nImagePreviewWidth value=35}
        <div id="uploads">
            {block name='account-uploads-subheading'}
                <div class="h2">{lang key='yourUploads'}</div>
            {/block}
            {block name='account-uploads-content'}
                <div class="table-responsive">
                    <table class="table table-striped table-bordered" id="customerupload">
                        <thead>
                            {block name='account-uploads-uploads-heading'}
                            <tr>
                                <th>{lang key='name'}</th>
                                <th>{lang key='uploadFilesize'}</th>
                                <th>{lang key='uploadAdded'}</th>
                                <th>{lang key='uploadFile'}</th>
                            </tr>
                            {/block}
                        </thead>
                        <tbody>
                            {block name='account-uploads-uploads'}
                                {foreach $Bestellung->oUpload_arr as $oUpload}
                                        <tr>
                                            <td class="vcenter">{$oUpload->cName}</td>
                                            <td class="vcenter">{$oUpload->cGroesse}</td>
                                            <td class="vcenter">
                                                <span class="infocur" title="{$oUpload->dErstellt|date_format:'d.m.Y - H:i:s'}">
                                                    {$oUpload->dErstellt|date_format:'d.m.Y'}
                                                </span>
                                            </td>
                                            <td>
                                                <form method="post" action="{get_static_route id='jtl.php'}" class="label-slide">
                                                    {csrf_token}
                                                    <input name="kUpload" type="hidden" value="{$oUpload->kUpload}" />
                                                    {block name='account-uploads-uploads-button'}
                                                        {include file="widgets/base/button.tpl" type="submit" name="{$oUpload->cName}" variant="primary" classes="btn-sm" label="<i class=\"{et_getIcon key="download"}\"></i>"}
                                                    {/block}
                                                </form>
                                            </td>
                                        </tr>
                                {/foreach}
                            {/block}
                        </tbody>
                    </table>
                </div>
            {/block}
        </div>
    {/if}
{/block}
