<div class="content2" id="combo_window">
	<h1>{{@product['title']}}</h1>
	<p>Выберите из списка</p>
	<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}}">
		<repeat group="{{@items}}" key="{{@n}}" value="{{@item}}">
		<h2>{{@item['title']}}</h2>
		<input type="hidden" name="item[{{@n}}][price]" value="{{@item['price']}}">
			{~@select=false~}
			<repeat group="{{@item['variants']}}" value="{{@p}}">

		<input type="radio" name="item[{{@n}}][product_id]" value="{{@p['id']}}" id="item_{{@n}}_{{@p['id']}}" {{!@select?'checked="checked"':''}}>
			{~@select=true~}
		<label class="product_tile product_{{@p['id']}} product_{{@p['id']}}_total select_combo" for="item_{{@n}}_{{@p['id']}}">
        	<div class="images images250">
          		<check if="{{is_array(@p['img']) && count(@p['img'])>0}}">
            		<true>
          		<img src="//{{@api_data['domen']}}/upload/{{@api_data['subdomen']}}/250_250/{{@p['img'][0]}}" class="small_img">
            		</true>
            		<false>
          		<div class="no_img"></div>
            		</false>
          		</check>
        	</div>
        	<h4><a href="/products/detail?id={{@p['id']}}" class="show_window text-body">{{@p['title']}}</a></h4>
	    </label>

			</repeat>
		<table width="100%"></table>
		</repeat>
		<p align="center">
			<input type="submit" value="Готово" class="btn btn-primary">
		</p>
	</form>
</div>
<script type="text/javascript">
$('#combo_window').closest('.popup_content').css('height', $(window).height());
show_close_button();
</script>