META-INF.resources.n2o.controls.file.upload.file.upload.result.multi.html Maven / Gradle / Ivy
{@forEach context="." index="$idx"}
{@view tag="div"}
{#msgError}
{msgError}
{:else}
{?url}
{filename}
{:else}
{filename}
{/url}
{?filesize}
{$size}
{/filesize}
{^$notEnabled}{/$notEnabled}
{/msgError}
{:bindings}
{@bind def="$size as contents (.n2o-file-upload-size) | file.upload.sizeFormat '{filesize}' " entry="value" context="." instant="true" /}
{@bind def="$notEnabled as visible (button) "
entry="$enabled,$dependency$enabled"
computed=" {readonly} || !( $enabled && (typeof $dependency$enabled === 'undefined' ? true : $dependency$enabled ) ) " /}
{/view}
{/forEach}