{{foreach $albums as $al}} {{if $al.text}}
{{if $default}} {{include file="field_input.tpl" field=$caption}} {{include file="field_textarea.tpl" field=$body}} {{include file="field_checkbox.tpl" field=$visible}}
{{if $lockstate}} {{/if}}
{{/if}}
{{if $uploader}} {{include file="field_input.tpl" field=$caption}} {{include file="field_textarea.tpl" field=$body}} {{include file="field_checkbox.tpl" field=$visible}}
{{if $lockstate}} {{/if}}
{{$uploader}}
{{/if}}
{{* this is needed to append the upload files in the right order *}}
{{$aclselect}}