{* A generic document upload form Parameters: documentType = Document type (category, product, folder, content, module) parentId = Document parent id, ex: category id resource = Document parent resource name *} {* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} {default_translation_domain domain='bo.default'} {ifloop rel="document"}

{loop type="document" name="document" source=$documentType order="manual" source_id=$parentId visible="*"}
- {$TITLE}
  {$POSITION} {loop type="auth" name="can_change" role="ADMIN" resource="{$resource|default:"admin.$documentType"}" access="UPDATE"} {/loop} {elseloop rel="can_change"} {/elseloop} {loop type="auth" name="can_delete" role="ADMIN" resource="{$resource|default:"admin.$documentType"}" access="DELETE"} {/loop}
{/loop}

{/ifloop} {elseloop rel="document"}
{intl l='There is no documents attached to this %type.' type={$documentType}}
{/elseloop}