{assign var=requiredFields value=$cbcollection->load_required_fields($data)} {assign var=otherFields value=$cbcollection->load_other_fields($data)}
User Information {$data.userid|get_username}
Collection Details
{foreach from=$requiredFields item=field} {$field.class='form-control'}
{$field.hint_1}
{$formObj->createField($field)}
{$field.hint_2}
{/foreach}
Collection Stats
Items
{if $objects} {section name=list loop=$objects} {if $data.type == 'photos'} {get_photo details=$objects[list] output='html' title=$photos[list].photo_title} {/if} {if $data.type == 'videos'} {/if} {/section} {assign var=rest value=$data.total_objects-4} Manage Items{if $rest && $rest>0} - {$rest} more item{if $rest>1}s{/if}{/if} {else} Collection has 0 items {/if} Other Fields
{foreach from=$otherFields item=field} {$field.hint_1}
{$formObj->createField($field)}
{$field.hint_2} {/foreach}
Collection Preview