{lang code='link_video_msg'}
{assign var='video_fields' value=$Upload->load_video_fields($input)}
{* Adding Remote File Form *}

### Remote video details

Video URL
can be flv, mp4, m4v, ogg
Video duration
duration format is hours:minutes:seconds
Thumb file
{foreach from=$video_fields item=field_group}
{* Hide fields if group is not required *} {if $field_group.group_id!='required_fields'} {$field_group.group_name}
{else} {$field_group.group_name} {/if}
{foreach from=$field_group.fields item=field} {if $field.name!='category[]'}
{$field.title} {if $field.hint_1}{$field.hint_1}{/if} {$field.class="form-control"} {if $field.type == "radiobutton"} {$field.label_class = "radio"} {$field.notShowSeprator = "yes"} {/if} {$formObj->createField($field)} {if $field.hint_2}
{$field.hint_2}
{/if}
{else} {assign var='category_array' value=$field} {/if} {/foreach}
{* Loading Category in a seperate dive so they can fit properly*} {if $category_array}
{$category_array.title} {if $category_array.hint_1}
{$category_array.hint_1}
{/if}
{if $category_array.type == "checkbox"} {$category_array.label_class = "checkbox"} {/if} {$formObj->createField($category_array)}
{if $category_array.hint_2}
{$category_array.hint_2}
{/if}
{assign var='category_array' value=''} {/if} {if $field_group.group_id=='required_fields'}
{/if} {* Closing Div for hidden fields *} {if $field_group.group_id!='required_fields'}
{/if}
{/foreach}
{literal}
{/literal}