{~@focus=0~}
<h1>{{@page_data['title']}}</h1>
<form name="add_marking_form" action="/receipts/add_marking" method="POST">
	{~@p=@products[0]~}
	<p><b>{{@p['title']}}</b></p>
		<input type="hidden" name="receipttype[{{@p['id']}}]" value="">
		<input type="hidden" name="product[{{@p['id']}}]" value="{{@p['id']}}">
		<input type="hidden" name="count[{{@p['id']}}]" value="{{@p['count']}}">
	<p align="center">
		<input type="text" class="marking_input" name="mark[{{@p['id']}}][]" autocomplete="off">
	</p>
	<p align="center">
		<input type="submit" value="Отправить">
		<check if="{{(@p['marking']==2 && (int)@base_settings['check_mark']==1) || (@p['egais']==1 && (int)@base_settings['check_egais']==1)}}">
		<input type="submit" class="reset" value="Пропустить">
		</check>
	</p>
</form>
<script type="text/javascript">
$('.marking_input').eq(0).focus();
$('input[name="receipttype[{{@p['id']}}]"]').val($('input[name="type"]').val());
</script>
