{* A generic image upload form Parameters: imageType = Image type (category, product, folder, content, module) parentId = Image parent id, ex: category id resource = Image 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="image"}

{loop type="image" name="image" backend_context="on" source=$imageType order="manual" source_id=$parentId width="200" height="100" resize_mode="borders" visible="*"}
- {if $PROCESSING_ERROR} {else} {/if}
  {$POSITION} {loop type="auth" name="can_change" role="ADMIN" resource="{$resource|default:"admin.$imageType"}" access="UPDATE"} {/loop} {elseloop rel="can_change"} {/elseloop} {loop type="auth" name="can_delete" role="ADMIN" resource="{$resource|default:"admin.$imageType"}" access="DELETE"} {/loop}
{/loop}

{/ifloop} {elseloop rel="image"}
{intl l='There is no images attached to this %type.' type={$imageType}}
{/elseloop}