2014-03-31 14:00:19 +00:00
|
|
|
{$myAccountLinks = $userquery->my_account_links()}
|
2015-02-26 13:49:42 +00:00
|
|
|
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($v,TRUE)}
|
2014-03-31 14:00:19 +00:00
|
|
|
<div class="container marginBottom">
|
|
|
|
{include file="$style_dir/blocks/manage/account_menu.html"}
|
|
|
|
<div class="row cb-box">
|
2015-06-03 10:36:42 +00:00
|
|
|
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 hidden-xs">
|
2014-03-31 14:00:19 +00:00
|
|
|
{include file="$style_dir/blocks/manage/userMenuLeft.html"}
|
|
|
|
</div>
|
|
|
|
<div class="mainContent col-md-9">
|
|
|
|
{assign var='video_fields' value=$Upload->load_video_fields($v)}
|
|
|
|
<div class="cb-box marginBottom">
|
|
|
|
<h2>Edit Video</h2>
|
|
|
|
<div class="account_form">
|
2015-11-17 13:40:24 +00:00
|
|
|
<form method="post" name="edit_video" enctype="multipart/form-data">
|
2014-03-31 14:00:19 +00:00
|
|
|
{* GETTING THUMBS INFO *}
|
|
|
|
<h3>Thumbs</h3>
|
|
|
|
<div class="row">
|
|
|
|
{assign var=vidthumbs value=get_thumb($v,1,TRUE,false,true,false)}
|
|
|
|
{foreach from=$vidthumbs item=vid_thumb}
|
|
|
|
<div class="col-md-3">
|
2014-09-25 14:00:34 +00:00
|
|
|
<div class="form-group text-center">
|
2015-02-26 14:33:03 +00:00
|
|
|
<label class="" for="{$vid_thumb|getname}"><img class="edit-img-thumbnail" src="{$vid_thumb}" />
|
2014-04-01 12:01:50 +00:00
|
|
|
<input class="show" style="margin: 5px auto" type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $v.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />{lang code='default'}</label>
|
2014-09-25 14:00:34 +00:00
|
|
|
</div>
|
2014-03-31 14:00:19 +00:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{foreach from=$video_fields item=field_group}
|
|
|
|
<div class="">
|
|
|
|
<h3>{$field_group.group_name}</h3>
|
|
|
|
{if $field_group.group_id == 'required_fields'}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="videoLink">{lang code='video_link'}</label>
|
|
|
|
<textarea class="form-control" onclick="this.select()">{videoLink vdetails=$v}</textarea>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{foreach from=$field_group.fields item=field}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.title == 'Title' || $field.title == 'Description' || $field.title == 'Tags'}
|
|
|
|
{$field.class='form-control'}
|
|
|
|
{$formObj->createField($field)}
|
|
|
|
{else}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<small class="show">{$field.hint_1}</small>
|
|
|
|
{if $field.type == 'checkbox'}
|
|
|
|
{$field.class=''}
|
|
|
|
{$field.label_class='checkbox'}
|
|
|
|
{$field.notShowSeprator=true}
|
|
|
|
{/if}
|
|
|
|
{if $field.type == 'radiobutton'}
|
|
|
|
{$field.class=''}
|
|
|
|
{$field.label_class='radio'}
|
|
|
|
{$field.notShowSeprator=true}
|
|
|
|
{/if}
|
|
|
|
{$formObj->createField($field)}
|
|
|
|
<small class="show">{$field.hint_2}</small>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{if $field.name=='broadcast'}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="videoLink">{lang code='video_link'}</label>
|
|
|
|
<textarea onclick="this.select()" class="form-control" >{videoLink vdetails=$v}</textarea>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
2015-02-26 13:49:42 +00:00
|
|
|
|
2014-03-31 14:00:19 +00:00
|
|
|
{/foreach}
|
|
|
|
|
2015-02-26 13:49:42 +00:00
|
|
|
|
|
|
|
{foreach from=$custom_upload_fields item=field}
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="rated_by">{$field.title}</label>
|
|
|
|
</div>
|
2014-03-31 14:00:19 +00:00
|
|
|
|
2015-02-26 13:49:42 +00:00
|
|
|
<div class="col-md-12">
|
|
|
|
{$field.class='form-control'}
|
|
|
|
{$field.hint_1}<br>{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
|
|
</div><br>
|
|
|
|
{$field.hint_2}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
2015-11-17 13:40:24 +00:00
|
|
|
{ANCHOR place="edit_video_form"}
|
2014-03-31 14:00:19 +00:00
|
|
|
<div align="right">
|
|
|
|
<button name="update_video" id="button" value="submit" class="btn btn-primary">{lang code='update_video'}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2014-02-06 13:31:48 +00:00
|
|
|
|
|
|
|
|