<div class="content2">
	<h1>{{@page_data.title}}</h1>
	<form name="turn_form" action="/receipts/turn" method="POST">
		<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="turn[{{@l.id}}]" id="turn_{{@i}}_{{@l.id}}" {{@l.turn==@i?'checked="checked"':''}} value="{{@i}}">
						<label for="turn_{{@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>