<div class="content2">
	<h1>{{@page_data.title}}</h1>
	<form name="turn_form" action="/receipts/split" method="POST">
		<input type="hidden" name="receipt_id" value="{{@receipt_id}}">
		<table class="work_table">
			<repeat group="{{@lines}}" value="{{@l}}">
				<check if="{{@l.parent_id==0}}">
					{~if(!@l.turn)@l.turn=1~}
			<tr class="hover_no">
				<td>
					<div class="turn_div">
					<loop from="{{@i=1}}" to="{{@i<=4}}" step="{{@i++}}">
						<input type="radio" name="lines[{{@l.id}}]" id="receipt_{{@i}}_{{@l.id}}" {{@l.turn==@i?'checked="checked"':''}} value="{{@i}}">
						<label for="receipt_{{@i}}_{{@l.id}}">
							{{@i}}
						</label>
					</loop>
					</div>
					<span class="small right">x {{numberformat(@l.count, 3, '.', '')}}</span>
					{{@l.product_title}}
				</td>
			</tr>
				</check>
			</repeat>
		</table>
		<p align="center">
			<input type="submit" value="Сохранить">
		</p>
	</form>
</div>
<script>
window_open_alarm();
</script>