43 lines
No EOL
1.6 KiB
HTML
43 lines
No EOL
1.6 KiB
HTML
<h2>Mass Uploader</h2>
|
|
{assign var=vid_files value=$cbmass->get_video_files()}
|
|
{if $vid_files}
|
|
<form name="mass_upload" method="post" class="cbform">
|
|
{foreach from=$vid_files item=file name=mass_files}
|
|
{assign var='requiredFields' value=$Upload->loadRequiredFields($file)}
|
|
{assign var='optionFields' value=$Upload->loadOptionFields($file)}
|
|
{assign var='locationFields' value=$Upload->loadLocationFields($file)}
|
|
{assign var='cust_fields' value=$Upload->custom_form_fields}
|
|
<input class="lead" type="hidden" name="mass_up[]" value="{$file.title}" />
|
|
|
|
<div class="alert alert-info">
|
|
|
|
|
|
<div class="well" >
|
|
<h5 class="pull-left" style="padding-right:10px;">{$smarty.foreach.mass_files.iteration} - <b>{$file.title}</b></h5>
|
|
<spam class="label label-primary" style="cursor: pointer;" onclick="$(this).next().toggle();return false;">Enter Details {$smarty.foreach.mass_files.iteration}</spam>
|
|
<div class="well clearfix" style="display:none">
|
|
|
|
{foreach from=$requiredFields item=field}
|
|
<div class="form-group">
|
|
<label for="{$field.id}">{$field.name}</label>
|
|
{$field.class='form-control'}
|
|
{$formObj->createField($field, true)}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
<div class="well align-center">
|
|
<input type="submit" name="mass_upload_video" id="mass_upload_video" value="Mass Upload Videos Now" class="btn btn-primary" /></div>
|
|
</form>
|
|
|
|
{else}
|
|
<div class="form-control">
|
|
|
|
NO VIDEO FOUND IN MASS UPLOAD FOLDER
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{include file="$style_dir/blocks/pagination.html" } |