<div class="content2">
	<h1>{{@page_data['title']}}</h1>
	<p align="center">{{@product['title']}}</p>
	<check if="{{@items}}">
		<true>
	<form name="add_combo_form" action="/receipts/add_combo" method="POST">
		<input type="hidden" name="combo_id" value="{{@product['id']}}">
		<input type="hidden" name="count" value="{{@GET.count?@GET.count:1}}">
		<table class="work_table">
			<repeat group="{{@items}}" key="{{@n}}" value="{{@item}}">
			<tr>
				<td>
					{{@item['title']}}
				</td>
				<td>
					<select name="item[{{@n}}][product_id]">
						<repeat group="{{@item['variants']}}" value="{{@variant}}">
						<option value="{{@variant['id']}}">{{@variant['title']}}</option>
						</repeat>
					</select>
				</td>
				<td align="center">
					<input type="hidden" name="item[{{@n}}][price]" value="{{@item['price']}}">
					{{number_format(@item['price'], 2, '.', '')}}
				</td>
			</tr>
			</repeat>
			<tr>
				<td align="center" colspan="3">
					<input type="submit" value="Добавить">
					<input type="button" class="close" value="Отмена">
				</td>
			</tr>
		</table>
	</form>
<script>
window_open_alarm();
</script>
		</true>
		<false>
	<p align="center" class="false">Не добавлены позиции.</p>
<script>
false_alarm();
</script>
		</false>
	</check>
</div>