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