<h3 class="page"><a data-help-icon="exif" href="<?php echo $tpl['link']($_GET['q_pageless']); ?>"><?php echo __('Informations EXIF'); ?></a></h3>

<div id="obj_mini_links_js">
<?php include('object_select.tpl.php'); ?>
	<span class="sep">&nbsp; | &nbsp;</span>
	<p>
		<a class="js show_all" href="javascript:;"><?php echo __('Tout montrer'); ?></a>
		-
		<a class="js hide_all" href="javascript:;"><?php echo __('Tout cacher'); ?></a>
	</p>
	<span class="sep">&nbsp; | &nbsp;</span>
	<p>
		<a id="meta_tags_link" class="js" href="javascript:;"><?php echo __('Montrer le nom des tags'); ?></a>
	</p>
</div>

<form id="obj_mini_form" class="meta" action="<?php echo $tpl['current_url_pageless']; ?>" method="post">
	<div>
<?php foreach ($tpl['exif'] as &$i) : ?>
		<div id="i_<?php echo $i['id']; ?>" class="obj_mini <?php if ($i['status']) : ?>selected<?php endif; ?> selectable_class">
			<div class="obj_mini_body">
				<p class="obj_mini_selectable selectable_zone">
					<input
						class="selectable"
						<?php if ($i['status']) : ?>checked="checked"<?php endif; ?>
						name="items[<?php echo $i['name']; ?>][activated]"
						type="checkbox">
				</p>
				<p class="obj_mini_sortable">
					<img
						src="<?php echo $tpl['admin']['style']['path']; ?>/icons/16x16/move-up-down.png"
						height="16"
						width="16">
				</p>
				<p class="obj_mini_title">
					<span><?php echo $i['name']; ?></span>
					<span><?php echo $i['title']; ?></span>
				</p>
<?php if ($i['format']) : ?>
				<p class="obj_mini_action">
					<span class="icon icon_edit" data-action="edit">
						<a class="js" href="javascript:;">
							<span><?php echo __('Format'); ?></span>
						</a>
					</span>
				</p>
			</div>
			<div class="obj_mini_edit">
				<p>
					<input
						name="items[<?php echo $i['name']; ?>][format]"
						type="text"
						maxlength="128"
						size="40"
						value="<?php echo $i['format']; ?>">
				</p>
<?php endif; ?>
			</div>
		</div>
<?php endforeach; ?>
	</div>
	<div id="submit">
		<div>
			<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
			<input name="serial" type="hidden">
			<input type="submit" value="<?php echo __('Enregistrer'); ?>">
		</div>
	</div>
</form>

<script nonce="<?php echo CSP_NONCE; ?>" type="text/javascript">
var tags_name_hide_text = "<?php echo $tpl['php2js'](__('Cacher le nom des tags')); ?>";
var tags_name_show_text = "<?php echo $tpl['php2js'](__('Montrer le nom des tags')); ?>";
</script>
