<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input type="hidden" name="updatetime" value="{$row.updatetime}" />

    <ul class="list-group">
        <li class="list-group-item">
            订单金额：￥{$row.order_price}
        </li>
        <li class="list-group-item">
            实付金额：￥{$row.total_price}元 (包含:<!--优惠￥{$row.discount_price}，-->物流费用￥{$row.delivery_price})
        </li>
        {if $row.had_refund}
        <li class="list-group-item">
            退款时间：{:date('Y-m-d H:i:s', $row.had_refund)}
        </li>
        <li class="list-group-item">
            已退款：{:__('Yes')}
        </li>
        {else/}
        <li class="list-group-item">
            已退款：{:__('No')}
        </li>
        {/if}

    </ul>

    <style>
        .media {
            border-bottom: 1px solid #f1f1f1;
        }

        .media-left img {
            width: 100px;
            height: 100px;
        }

        .total-price {
            color: #ff5f17;
        }
    </style>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="refund_amount" type="text" value="{$row.total_price}">
            <font color="red">选择【同意】后：如果是余额支付，将退款到余额；如果是在线支付的，将原路退回。选择【同意】或【拒绝】之后即退款结束，无法再次退款</font>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款状态:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="refundStatusList" item="vo"}
                {if $key > 2}
                <label for="row[refund_status]-{$key}"><input id="row[refund_status]-{$key}" name="refund_status" type="radio" value="{$key}" {in name="key" value="$row.refund_status"}checked{/in} /> {$vo}</label>
                {/if}
                {/foreach}
            </div>

        </div>
    </div>

    <?php if($row['refund_status'] != 3 && $row['refund_status'] != 4){ ?>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
    <?php } ?>


</form>

