Modified: made some changes in Ui also upload thumb button functional
This commit is contained in:
parent
a41879c027
commit
2f994e9461
1 changed files with 87 additions and 83 deletions
|
@ -10,101 +10,105 @@
|
||||||
<div class="cb-box marginBottom">
|
<div class="cb-box marginBottom">
|
||||||
<h2>Edit Video</h2>
|
<h2>Edit Video</h2>
|
||||||
<div class="account_form">
|
<div class="account_form">
|
||||||
|
<!-- ///////////changes made//////////// -->
|
||||||
|
<h3>Thumbs</h3>
|
||||||
|
<div class="clearfix well">
|
||||||
|
<form action="upload_thumb.php?video={$v.videoid}" method="post" enctype="multipart/form-data" name="form1">
|
||||||
|
<h5>Upload New Thumb</h5>
|
||||||
|
<input name="vid_thumb[]" type="file" />
|
||||||
|
<label for="thumb_file"></label>
|
||||||
|
<div class="form-group pull-right">
|
||||||
|
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="btn btn-primary btn-sm"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!-- ///////////changes made//////////// -->
|
||||||
|
|
||||||
<form method="post" name="edit_video" enctype="multipart/form-data">
|
<form method="post" name="edit_video" enctype="multipart/form-data">
|
||||||
{* GETTING THUMBS INFO *}
|
{* GETTING THUMBS INFO *}
|
||||||
<h3>Thumbs</h3>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{assign var=vidthumbs value=get_thumb($v,1,TRUE,FALSE,TRUE,FALSE,'original')}
|
{assign var=vidthumbs value=get_thumb($v,1,TRUE,FALSE,TRUE,FALSE,'original')}
|
||||||
{foreach from=$vidthumbs item=vid_thumb}
|
{foreach from=$vidthumbs item=vid_thumb}
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="form-group text-center">
|
<div class="form-group text-center">
|
||||||
<label class="" for="{$vid_thumb|getname}"><img class="edit-img-thumbnail" src="{$vid_thumb}" width="100" height="100" />
|
<label class="" for="{$vid_thumb|getname}"><img class="edit-img-thumbnail" src="{$vid_thumb}" width="100" height="100" />
|
||||||
<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>
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
{foreach from=$video_fields item=field_group}
|
||||||
|
<div class="clearfix">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
|
||||||
|
{foreach from=$custom_upload_fields item=field}
|
||||||
|
<div class="clearfix">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="clearfix">
|
||||||
|
<label for="rated_by">{$field.title}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clearfix">
|
||||||
|
{$field.class='form-control'}
|
||||||
|
{$field.hint_1}<br>{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||||
|
</div><br>
|
||||||
|
{$field.hint_2}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<!-- <div align="left" style=" width:100%; margin:auto; margin-top:10px;"> -->
|
{ANCHOR place="upload_subtitle"}
|
||||||
|
{ANCHOR place="edit_video_form"}
|
||||||
<fieldset class="fieldset">
|
<div align="right">
|
||||||
<h3>Upload New Thumb</h3>
|
<button name="update_video" id="button" value="submit" class="btn btn-primary">{lang code='update_video'}</button>
|
||||||
<div id="thumb_fileds" style="margin:10px">
|
|
||||||
<input name="vid_thumb[]" type="file" accept="image/*"/>
|
|
||||||
<label for="thumb_file"></label>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
<input class="btn btn-primary" type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="button"/>
|
|
||||||
<!-- </div> -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{foreach from=$video_fields item=field_group}
|
|
||||||
<div class="clearfix">
|
|
||||||
<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>
|
</div>
|
||||||
{/if}
|
</form>
|
||||||
{foreach from=$field_group.fields item=field}
|
</div>
|
||||||
<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>
|
|
||||||
|
|
||||||
{/foreach}
|
|
||||||
|
|
||||||
|
|
||||||
{foreach from=$custom_upload_fields item=field}
|
|
||||||
<div class="clearfix">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="clearfix">
|
|
||||||
<label for="rated_by">{$field.title}</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix">
|
|
||||||
{$field.class='form-control'}
|
|
||||||
{$field.hint_1}<br>{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
||||||
</div><br>
|
|
||||||
{$field.hint_2}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/foreach}
|
|
||||||
{ANCHOR place="upload_subtitle"}
|
|
||||||
{ANCHOR place="edit_video_form"}
|
|
||||||
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
Loading…
Add table
Reference in a new issue