<form id="thumb_edit" class="page" action="<?php echo $tpl['current_url']; ?>" method="post">
	<fieldset id="thumb_crop">
		<legend><?php echo __('Rognage'); ?></legend>
		<div id="thumb_crop_container">
			<img data-width="<?php echo $tpl['crop']['width']; ?>"
				 data-height="<?php echo $tpl['crop']['height']; ?>"
				 data-selection-x="<?php echo $tpl['crop']['selection_x']; ?>"
				 data-selection-y="<?php echo $tpl['crop']['selection_y']; ?>"
				 data-selection-h="<?php echo $tpl['crop']['selection_h']; ?>"
				 data-selection-w="<?php echo $tpl['crop']['selection_w']; ?>"
				 src="<?php echo $tpl['crop']['image']; ?>">
		</div>
		<div class="thumb_tools">
			<span class="icon icon_selection_all"><a id="thumb_crop_select_all" class="js" href="javascript:;"><?php echo __('Tout sélectionner'); ?></a></span>
			-
			<span class="icon icon_selection_free"><a id="thumb_crop_free" class="js" href="javascript:;"><?php echo __('Sélection libre'); ?></a></span>
			-
			<span class="icon icon_selection_square"><a id="thumb_crop_square" class="js" href="javascript:;"><?php echo __('Sélection en carré'); ?></a></span>
		</div>
		<div class="report_classic">
			<div class="report_msg report_info">
				<p>
					<?php echo __('Le rognage de la vignette ne s\'appliquera que pour la galerie.'); ?>
				</p>
			</div>
		</div>
	</fieldset>
	<div id="submit">
		<div>
			<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
			<input name="crop_selection" type="hidden">
			<input name="thumb_edit" type="submit" value="<?php echo __('Enregistrer'); ?>">
		</div>
	</div>
</form>