{css} {js}
{tab_container id="attachmentbox-{$attachmenttype}"} {tab_header content_id="attachmentpanel-{$attachmenttype}"} {tab_header_cell icon="lms-ui-icon-fileupload"} {t a=$filecontainers|@count|default:"0"}Attachments ($a):{/t} {/tab_header_cell} {/tab_header} {tab_contents id="attachmentpanel-{$attachmenttype}"} {tab_table} {if $filecontainers}
{trans("Creation date:")}
{trans("Creator:")}
{trans("Description:")}
{trans("Files:")}
{/if} {foreach $filecontainers as $container}
{$container.creationdate|date_format:"%Y/%m/%d %H:%M:%S"}
{$container.description|default:"---"}
{button type="link" href="#" class="container-edit" icon="edit" tip="Edit"} {button type="link" href="#" class="container-save" icon="save" tip="Save"} {button type="link" href="#" class="container-cancel" icon="cancel" tip="Cancel"} {button type="link" href="?m=attachments&attachmentaction=downloadzippedcontainer&type={$attachmenttype}&id={$container.id}" icon="fileupload" tip="Download file container as zip archive"} {button type="link" href="?m=attachments&attachmentaction=deletecontainer&type={$attachmenttype}&id={$container.id}" onclick="return confirm('{trans("Are you sure you want to delete this file container?")}')" icon="delete" tip="Delete file container"}
{foreachelse}
{trans("There are no file containers in database.")}
{/foreach} {tab_button_panel} {tab_buttons} {trans("Description:")} {fileupload id="files" fileupload=$fileupload form="upload-form"} {button icon="add" onclick="javascript:document.upload.submit();" label="Add"} {/tab_buttons} {/tab_button_panel} {/tab_table} {/tab_contents} {/tab_container}