105 lines
No EOL
4 KiB
HTML
105 lines
No EOL
4 KiB
HTML
<div class="alert alert-info">
|
|
{lang code='embed_video_msg'}
|
|
</div>
|
|
{assign var='video_fields' value=$Upload->load_video_fields($input)}
|
|
|
|
<div class="upload_info" id="upload_form{$objId}" style="margin-top:10px;border:none">
|
|
|
|
<form name="embedUploadForm{$objId}" class="upload_form" id="embedUploadForm{$objId}" method="post" action="{link name='upload'}#currnet_{$divid}" enctype="multipart/form-data">
|
|
|
|
{* Adding Embed Form *}
|
|
|
|
<h3>Embed video details</h3>
|
|
<div class="form-group">
|
|
<label for="embed_code">Embed Code</label>
|
|
<textarea name="embed_code" id="embed_code" class="form-control">{"embed_code"|post|form_val}</textarea>
|
|
<small class="hint">supports embed, object and iframes</small>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="duration">Video duration</label>
|
|
<input type="text" name="duration" id="duration" class="form-control" value="{"duration"|post|form_val}"/>
|
|
<small class="hint">duration format is hours:minutes:seconds</small>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="thumb_file">Thumb file</label>
|
|
<input name="thumb_file" type="file" class="btn" id="thumb_file" />
|
|
</div>
|
|
|
|
|
|
{foreach from=$video_fields item=field_group}
|
|
|
|
{* Hide fields if group is not required *}
|
|
{if $field_group.group_id!='required_fields'}
|
|
<h3>{$field_group.group_name}</h3>
|
|
<div id="more_fields_{$field_group.group_id}{$objId}">
|
|
{else}
|
|
<h3>{$field_group.group_name}</h3>
|
|
{/if}
|
|
|
|
|
|
<div {if $field_group.group_id=='required_fields'}{/if}>
|
|
{foreach from=$field_group.fields item=field}
|
|
|
|
{if $field.name!='category[]'}
|
|
{$field.class = "form-control"}
|
|
{if $field.type == 'radiobutton'}
|
|
<label for="">{$field.title}</label>
|
|
<label for="{$field.id}" class="radio">
|
|
{$formObj->createField($field)}
|
|
</label>
|
|
{continue}
|
|
{/if}
|
|
{if $field.type == 'checkbox'}
|
|
|
|
{/if}
|
|
<div class="form-group" id="field-{$field.id}">
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
{if $field.hint_1}<p>{$field.hint_1}</p>{/if}
|
|
{$formObj->createField($field)}
|
|
{if $field.hint_2}
|
|
<small>{$field.hint_2}</small>{/if}
|
|
</div>
|
|
{else}
|
|
{assign var='category_array' value=$field}
|
|
{/if}
|
|
|
|
{/foreach}
|
|
</div>
|
|
|
|
{* Loading Category in a seperate dive so they can fit properly*}
|
|
{if $category_array}
|
|
<div>
|
|
<div class="form-group">
|
|
<label for="{$field.id}">{$category_array.title}</label>
|
|
{if $category_array.hint_1}<div>{$category_array.hint_1}</div>{/if}
|
|
<div>
|
|
{$category_array.label_class = "checkbox"}
|
|
{$formObj->createField($category_array)}
|
|
</div>
|
|
{if $category_array.hint_2}
|
|
<small>{$category_array.hint_2}</small>{/if}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{assign var='category_array' value=''}
|
|
{/if}
|
|
|
|
{if $field_group.group_id=='required_fields'}<div class="clearfix"></div>{/if}
|
|
|
|
{* Closing Div for hidden fields *}
|
|
{if $field_group.group_id!='required_fields'}
|
|
</div>
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
<input name="submit_upload" type="hidden" value="just_do_it">
|
|
<div>
|
|
<input type="button" name="embed_upload" id="embed_upload" value="Upload" onClick="check_embed_code('{$objId}')" class="btn btn-primary"/></div>
|
|
</form>
|
|
|
|
</div> |