<h1>{{@page_data['title']}}</h1>
<p class="false" align="center">{{@txt}}</p>
<form name="add_certificate_form" class="add_certificate_form" action="/receipts/add_certificate" method="POST">
	{~@p=@products[0]~}
	<p align="center"><b>{{@p['title']}}</b></p>
	<input type="text" class="certificate_input" name="certificate" autocomplete="off">
	<input type="submit" value="Отправить">
	<check if="{{@base_settings.virtual_keyboard}}">
	<div class="virtual_keyboard virtual_keyboard_certificate full_keyboard">
		{~@keys='1234567890-+|QWERTYUIOP_|ASDFGHJKL@|ZXCVBNM'~}
		<div class="eng">
			<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
				<check if="{{@keys[@i]=='|'}}">
					<true>
			<br>
					</true>
					<false>
			<input tabindex="3" type="button" class="virtual_key" value="{{@keys[@i]}}" for="certificate_input" required>
					</false>
				</check>
			</loop>
			<button type="button" class="virtual_key_bks" for='certificate_input'>
				<i class="fas fa-long-arrow-alt-left"></i>
			</button>
			<input tabindex="3" type="button" class="virtual_key_delete" for='certificate_input' value="CE">
			<br>
			<input tabindex="3" type="button" class="virtual_key_ru" value="RU">
			<input tabindex="3" type="button" class="virtual_key virtual_key_space" for='certificate_input' value=" ">
			<input tabindex="3" type="button" class="virtual_key" for='certificate_input' value=",">
			<input tabindex="3" type="button" class="virtual_key" for='certificate_input' value=".">
		</div>
			{~@keys='1234567890-+|ЙЦУКЕНГШЩЗХЪ|ФЫВАПРОЛДЖЭ_|ЯЧСМИТЬБЮ@'~}
		<div class="ru">
			<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
				{~@a=mb_substr(@keys, @i, 1)~}
				<check if="{{@a=='|'}}">
					<true>
			<br>
					</true>
					<false>
			<input tabindex="3" type="button" class="virtual_key" value="{{@a}}" for="certificate_input">
					</false>
				</check>
			</loop>
			<button type="button" class="virtual_key_bks" for='certificate_input'>
				<i class="fas fa-long-arrow-alt-left"></i>
			</button>
			<input tabindex="3" type="button" class="virtual_key_delete" for='certificate_input' value="CE">
			<br>
			<input tabindex="3" type="button" class="virtual_key_eng" value="ENG">
			<input tabindex="3" type="button" class="virtual_key virtual_key_space" for='certificate_input' value=" ">
			<input tabindex="3" type="button" class="virtual_key" for='certificate_input' value=",">
			<input tabindex="3" type="button" class="virtual_key" for='certificate_input' value=".">
		</div>
	</div>
	</check>
</form>

<script type="text/javascript">
if($('.add_certificate_form').length>1) {
	$('.add_certificate_form').eq(0).closest('.popup').remove();
}
$('.certificate_input').eq(0).focus();
$('input[name="receipttype').val($('input[name="type"]').val());
</script>
<script>
window_open_alarm();
</script>