<form class="page" action="<?php echo $tpl['current_url']; ?>" method="post">
<?php if ($tpl['item']['type'] == 'video') : ?>
	<fieldset>
		<legend><?php echo __('Extraction d\'image'); ?></legend>
		<div id="thumb_video_container">
			<div id="thumb_video">
				<video controls poster="<?php echo $tpl['videocapture']['image']; ?>">
					<source src="<?php echo $tpl['item']['file']; ?>" type="<?php echo $tpl['item']['type_mime']; ?>">
				</video>
				<div class="thumb_tools">
					<span class="icon icon_capture"><a id="thumb_video_getcapture" class="js" href="javascript:;"><?php echo __('Extraire l\'image'); ?></a></span>
				</div>
			</div>
			<div id="thumb_video_image">
				<img id="thumb_video_capture" src="<?php echo $tpl['videocapture']['image']; ?>">
			</div>
		</div>
		<p class="field">
			<input name="video_capture" type="hidden">
			<input name="video_duration" type="hidden">
			<input name="video_width" type="hidden">
			<input name="video_height" type="hidden">
			<input name="video_hash" type="hidden" value="<?php echo $tpl['videocapture']['hash']; ?>">
			<input name="video_id" type="hidden" value="<?php echo $tpl['videocapture']['id']; ?>">
			<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
			<input name="new_thumb" type="submit" value="<?php echo __('Enregistrer'); ?>">
		</p>
	</fieldset>
<?php endif; ?>
</form>