{% extends 'obj_form.html' %}

{% block form_content %}

<script>
    $(document).ready(function () {

        $('.btn-save').click(function () {
            $.SubmitForm('#obj_form form', '{{request.path}}');
        });

    })

</script>
<style>
    #id_is_show {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
</style>
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">评论内容</h3>
    </div>
    <div class="panel-body">
        <p><img src="{{comment.user.wx_headimgurl}}" style="width:50px"/></p>
        <p><b>用户昵称：</b>{{ comment.user.wx_nickname }}</p>
        <p><b>用户评论：</b>{{ comment.content }}</p>
        <p><b>用户打分：</b>{{ comment.score }}</p>
        <p><b>评分时间：</b>{{ comment.tm }}</p>
        <p><b>是否显示：</b>{{ form.is_show }}</p>
        <button type="button" class="btn btn-primary btn-save">保存</button>
    </div>
</div>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">订单信息</h3>
    </div>
    <div class="panel-body">
        <p><b>订单状态：</b>{{ order.status.status_name }}</p>
        <p><b>订单号码：</b>{{ order.order_number }}</p>
        <p><b>订单总价：</b>{{ product.product_cost }}</p>
        <p><b>下单时间：</b>{{ product.tm }}</p>
        <p><b>订单备注：</b>{{ product.remarks }}</p>
        <p><b>姓名：</b>{{ order.user_name }}</p>
        <p><b>电话：</b>{{ order.user_phone }}</p>
        <p><b>地址：</b>{{ order.user_address }}</p>

    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">商品信息</h3>
    </div>
    <div class="panel-body">
        <p><img src="{{domain}}/media/{{product.product_image}}" style="width:100px"/></p>
        <p><b>商品名称：</b>{{ product.product_name }}</p>
        <p><b>兑换数量：</b>{{ product.num }}</p>
        <p><b>总价值：</b>{{ product.product_cost }}</p>
    </div>
</div>

<script>


</script>
{% endblock %}