<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>天天生鲜-提交订单</title>
	<link rel="stylesheet" type="text/css" href="/static/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/static/css/main.css">
</head>
<body>
	<div class="search_bar clearfix">
		<a href="/index/" class="logo fl"><img src="/static/images/logo.png"></a>
		<div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;提交订单</div>	
	</div>
	

	<h3 class="common_title">商品列表</h3>
	<div class="common_list_con clearfix">
		<ul class="goods_list_th clearfix">
			<li class="col01">商品名称</li>
			<li class="col03">商品价格</li>
			<li class="col04">数量</li>
			<li class="col05">小计</li>
		</ul>

		{% for cart_goods in cart_goods_list %}
        <ul class="goods_list_td clearfix">
			<li class="col01">1</li>			
			<li class="col02"><img src="/static/goods/{{ cart_goods.goods_img }}.jpg"></li>
			<li class="col03">{{ cart_goods.goods_name}}</li>
			<li class="col05">{{ cart_goods.goods_price }}元</li>
			<li class="col06">{{ cart_goods.goods_num }}</li>
			<li class="col07">{{ cart_goods.total_money }}元</li>
		</ul>
        {% endfor %}

	</div>

	<h3 class="common_title">收货地址</h3>
    <form action="/cart/submit_order/" method="post">
    {% csrf_token %}
	<div class="common_list_con clearfix">
		<dl>
			<dd>
				<table>
					<tr>
						<td>收货地址:</td><td><input style="width: 350px; height: 23px;" type="text" name="addr"></td>
					</tr>
					<tr>
						<td>收货人:</td><td><input style="width: 350px; height: 23px;" type="text" name="recv"></td>
					</tr>
					<tr>
						<td>联系电话:</td><td><input style="width: 350px; height: 23px;" type="text" name="tele"></td>
					</tr>
					<tr>
						<td>备注:</td><td><textarea style="width: 350px; height: 100px; font-size: 12px;" name="extra"></textarea></td>
					</tr>
				</table>
			</dd>
		</dl>
	</div>

	<h3 class="common_title">支付方式</h3>	
	<div class="common_list_con clearfix">
		<div class="pay_style_con clearfix">
			<input type="radio" name="pay_style" checked>
			<label class="cash">货到付款</label>
		</div>
	</div>

	<h3 class="common_title">总金额结算</h3>
	<div class="common_list_con clearfix">
		<div class="settle_con">
			<div class="total_goods_count">共<em>{{ cart_goods_count }}</em>件商品，总金额<b>{{ cart_goods_money }}元</b></div>
			<div class="transit">运费：<b>10元</b></div>
			<div class="total_pay">实付款：<b>{{ cart_goods_money|add:10 }}元</b></div>
		</div>
	</div>


	<div class="order_submit clearfix">
        <input type="submit" value="提交订单"/>
	</div>	
    </form>

	<div class="footer">
		<div class="foot_link">
			<a href="#">关于我们</a>
			<span>|</span>
			<a href="#">联系我们</a>
			<span>|</span>
			<a href="#">招聘人才</a>
			<span>|</span>
			<a href="#">友情链接</a>		
		</div>
		<p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
		<p>电话：010-****888    京ICP备*******8号</p>
	</div>

	<div class="popup_con">
		<div class="popup">
			<p>订单提交成功！</p>
		</div>
		
		<div class="mask"></div>
	</div>
</body>
</html>