{include_template_file file="blocks/account_left.html"} {$photo=$p}

Editing "{$p.photo_title}"

{if $photo.photo_id == $photo.cover_photo }{lang code='Cover photo'}{/if}{if $photo.featured == 'yes'}{lang code='Featured'}{/if}{if $photo.is_mature == 'yes'}{lang code='Mature'}{/if}
{assign var='reqFields' value=$cbphoto->load_required_forms( $p )} {assign var='otherFields' value=$cbphoto->load_other_forms( $p )}
{lang code='Photo Details'} {foreach $reqFields as $field} {* Formating field for our template *} {$field.class='input-xxlarge'} {if $field.type=='checkbox' || $field.type=='radiobutton'} {$field.sep=' '} {if $field.type=='checkbox'} {$field.class='checkbox'} {else} {$field.class='radio'} {/if} {/if}
{ANCHOR place=$field.anchor_before} {$formObj->createField($field)} {ANCHOR place=$field.anchor_after} {if $field.hint_after}

{$field.hint_after}

{/if}
{/foreach}
{lang code='Photo Options'} {foreach $otherFields as $field} {* Formating field for our template *} {$field.class='input-xxlarge'} {if $field.type=='checkbox' || $field.type=='radiobutton'} {$field.sep=' '} {if $field.type=='checkbox'} {$field.class='checkbox'} {else} {$field.class='radio'} {/if} {/if}
{ANCHOR place=$field.anchor_before} {$formObj->createField($field)} {ANCHOR place=$field.anchor_after} {if $field.hint_after}

{$field.hint_after}

{/if}
{/foreach}
{$pd=json_decode($p.photo_details,true)} {if $pd} {/if}