clipbucket/upload/admin_area/styles/cb_2014/layout/edit_video.html

144 lines
8.8 KiB
HTML
Raw Normal View History

2014-01-23 14:00:36 +00:00
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='video_fields' value=$Upload->load_video_fields($data)}
{if $data.title neq ""}
<form action="" method="post" name="edit_video" id="edit_video">
<div class="row">
<div class="lead dropdown">Editing {$data.title}
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
{if $data.active!='yes'}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=activate">Activate</a> </li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=deactivate">Deactivate</a> </li>
<li role="presentation">
{/if}
{if $data.featured!='yes'}
<a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=featured">Make Featured</a></li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=unfeature">Make Unfeatured</a></li>
{/if}
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0)" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')">Delete This Video</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
<input name="admin" type="hidden" id="admin" value="true"/>
<input name="admin" type="hidden" id="admin" value="true"/>
<input name="videoid" type="hidden" value="{$data.videoid}"/>
<div class="form-group">
<legend>User Information</legend>
<img src="{$userquery->getUserThumb($u,'small')}" class="img-thumbnail oneUserImage" />
<label>Useid</label>
<a href="view_user.php?uid={$data.userid}">{$data.userid|get_username}</a>
</div>
<legend>Important Details</legend>
<div class="form-group">
<label for="videoid">Video Id</label>
<input class="form-control" disabled="disabled" name="videoid" type="text" id="videoid" value="{$data.videoid}" size="45"/>
</div>
<div class="form-group">
<label for="videokey">Video Key</label>
<input class="form-control" disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videokey}" size="45"/>
</div>
<div class="form-group">
<label for="filename">File Name</label>
<input class="form-control" disabled="disabled" name="filename" type="text" id="filename" value="{$data.file_name}" size="45"/>
</div>
<div class="form-group">
<label for="">Total Video Files</label>
{get_all_video_files vdetails=$data count_only=true} -
<a href="view_conversion_log.php?file_name={$data.file_name}">
<label>View File Details and Conversion Log</label></a>
<div class="form-group">
<label>Total Thumbnails</label>
<span class="form-control">{get_thumb vdetails=$data count_only=true}</span>
</div>
<div class="dropdown">
<a class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown" href="">Thumbs<i class="caret"></i></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
{if $data.embeded !=yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid};gen_more=true">Regenerate</a>{/if}
</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid}">Manage</a></li>
</ul>
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FALSE,TRUE,FALSE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:140px; float:right" align="center">
<label for="{$vid_thumb|getname}">
<img src="{$vid_thumb}" border="1" style="margin:4px;max-width:120px"/><br/>
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br/>
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
</div>
{/foreach}
{foreach from=$requiredFields item=field}
{/foreach}
<div class="form-group">
<label class="status">Status</label>
<select class="form-control" name="status">
<option class="form-control" value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
<option class="form-control" value="processing" {if $data.status=='Processing'} selected {/if}>Processing</option>
<option class="form-control" value="Failed"{if $data.status=='Failed'} selected {/if}>Failed</option>
</select>
</div>
<div class="form-group">
<label for="duration">Duration (seconds) </label>
<input class="form-control" name="duration" type="text" id="duration" value="{$data.duration} seconds" size="5"/>
</div>
<legend>Video Stats</legend>
<div class="form-group">
<label for="views">Views</label>
<input class="form-control" name="views" type="text" id="views" value="{$data.views}" size="45"/>
</div>
<div class="form-group">
<label for="rating">Rating</label>
<input class="form-control" name="rating" type="text" id="rating" value="{$data.rating}" size="5"/>
of 10
</div>
<div class="form-group">
<label for="rated_by">RatedBy</label>
<input class="form-control" name="rated_by" type="text" id="rated_by" value="{$data.rated_by}" size="45"/>
</div>
</div>
<legend>Custom Upload Fields</legend>
{foreach from=$custom_upload_fields item=field}
<div class="form-control">
<label>{$field.title}</label>
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}
</div>
{/foreach}
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right">
<div class="head">Viewing {$data.title}
{FlashPlayer vdetails = $data width='100%' autoplay='false'}
{foreach from=$video_fields item=field_group}
<legend>{$field_group.group_name}</legend>
{foreach from=$field_group.fields item=field}
<div class="form-group">
{$field.class='form-control'}
<label for="{$field.id}">{$field.title} </label>
{if $field.type=='radio'}
{$field.class='radio'}
{else}{$field.class='form-control'}
{/if}
{if $field.hint_1}{$field.hint_1}<br/>{/if}
{$formObj->createField($field)}
{if $field.hint_2}<br/>{$field.hint_2}{/if}
{/foreach}
{/foreach}
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}
</form>
{/if}