{$videoFields = $Upload->load_video_fields($input)} {$requiredFields = $videoFields[0]} {$sharingOptions = $videoFields[1]} {$dateAndLocation = $videoFields[2]}
{lang code='embed_video_msg'}
{* Adding Embed Form *}

### Embed video details

Embed Code {"embed_code"|post|form_val} supports embed, object and iframes
Thumb file
Video duration duration format is hours:minutes:seconds

### {$requiredFields.group_name}

{foreach $requiredFields.fields as $field}
{$field.class='form-control'} {$field.notShowSeprator='yes'} {if $field.type == 'radiobutton'} {$field.label_class='radio'} {$field.class=''} {$formObj->createField($field)} {elseif $field.type == 'checkbox'} {$categories = $field} {else} {$field.title} {$formObj->createField($field)} {/if}
{/foreach}

#### {$dateAndLocation.group_name}

{foreach $dateAndLocation.fields as $field}
{$field.class='form-control'} {$field.notShowSeprator='yes'} {if $field.type == 'radiobutton'} {$field.label_class='radio'} {$field.class=''} {$formObj->createField($field)} {elseif $field.type == 'checkbox'}

#### {$field.title}

{$field.label_class='checkbox'} {$field.class='checkbox'} {$formObj->createField($field)} {else} {$field.title} {$formObj->createField($field)} {/if}
{/foreach}

#### {$sharingOptions.group_name}

{foreach $sharingOptions.fields as $field}
{$field.class='form-control'} {$field.notShowSeprator='yes'} {if $field.type == 'radiobutton'} {$field.label_class='radio'} {$field.class=''} {$formObj->createField($field)} {else} {$field.title} {$formObj->createField($field)} {/if}
{/foreach}

### {$categories.title}

{$categories.hint_1}
{$categories.label_class='checkbox'} {$categories.class='checkbox'} {$formObj->createField($categories)}