{script} $('.select_type_tr').hide(); var selected = 'upload'; if($('input[name=code]').value != ''){ selected = 'code'; } {if isset($input_type)} selected = '{$input_type}'; {/if} $('#input_type_'+selected).click(); $('#type_'+selected).show(); {literal} $("[name=input_type]").click(function(){ $('.select_type_tr').hide(); if($('#input_type_code').is(':checked')){ $('#type_code').show(); $('#aparatURL').val(''); } else if($('#input_type_aparat').is(':checked')){ $('#type_aparat').show(); } else if($('#input_type_upload').is(':checked')){ $('#type_upload').show(); $('#aparatURL').val(''); } }); {/literal} {/script}

{text key="base+back"}

{form name='videoEditForm'}
{if isset($videoUploadField)}
{/if} {if isset($aparatSupport)}
{/if}
{if isset($videoUploadField)}{error name='videoUpload'}{/if}
{label name='code'}
{input name='code'}

{text key='video+video_add_tip'}
{text key='video+code_desc'}
{error name='code'}
{if isset($videoUploadField)}
{label name='videoUpload'}
{input name='videoUpload'}

{text key='iisvideoplus+video_add_upload_desc'}
{error name='videoUpload'}
{/if} {if isset($aparatSupport)}
{label name='aparatURL'}
{input name='aparatURL'}

{desc name='aparatURL'}
{error name='aparatURL'}
{/if}
{label name='title'}
{input name='title'}
{error name='title'}
{label name='description'}
{text key='video+description_desc'}
{input name='description'}
{error name='description'}
{label name='tags'}
{input name='tags'}
{text key='video+tags_desc'}
{if isset($statusPrivacyField)}
{label name='statusPrivacy'}
{input name='statusPrivacy'}
{/if}
{submit name='edit' class='ow_positive'}
{/form}