[*] BO : you can know download the previous file near the upload file input

This commit is contained in:
Damien Metzger
2013-10-25 18:55:25 +02:00
parent e9a802cf23
commit 03857c0576
6 changed files with 37 additions and 5 deletions
@@ -509,7 +509,7 @@
{elseif $input.type == 'categories_select'}
{$input.category_tree}
{elseif $input.type == 'asso_shop' && isset($asso_shop) && $asso_shop}
{$asso_shop}
{$asso_shop}
{elseif $input.type == 'color'}
<div class="col-lg-2">
<div class="row">
@@ -56,6 +56,14 @@
<button id="{$id}-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> {if isset($multiple) && $multiple}{l s='Add files'}{else}{l s='Add file'}{/if}
</button>
{if isset($file)}
<a href="{$file}">
<button type="button" class="btn btn-default">
<i class="icon-download"></i>
{if isset($size)}{l s='Download current file (%skb)' sprintf=$size}{else}{l s='Download current file'}{/if}
</button>
</a>
{/if}
</span>
</div>
</div>