<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value=""> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Out_trade_no')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-out_trade_no" class="form-control" name="row[out_trade_no]" type="text"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Order_price')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-order_price" class="form-control" step="0.01" name="row[order_price]" type="number" value="0.00"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Discount_price')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-discount_price" class="form-control" step="0.01" name="row[discount_price]" type="number"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_price')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-delivery_price" class="form-control" step="0.01" name="row[delivery_price]" type="number"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-total_price" class="form-control" step="0.01" name="row[total_price]" type="number"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]"> {foreach name="payTypeList" item="vo"} <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-ip" class="form-control" name="row[ip]" type="text"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-remark" class="form-control" name="row[remark]" type="text"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label> <div class="col-xs-12 col-sm-8"> <div class="radio"> {foreach name="statusList" item="vo"} <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> {/foreach} </div> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Have_paid')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-have_paid" data-rule="required" class="form-control selectpicker" name="row[have_paid]"> {foreach name="havePaidList" item="vo"} <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Have_delivered')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-have_delivered" data-rule="required" class="form-control selectpicker" name="row[have_delivered]"> {foreach name="haveDeliveredList" item="vo"} <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Have_commented')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-have_commented" class="form-control selectpicker" name="row[have_commented]"> {foreach name="haveCommentedList" item="vo"} <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Have_received')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-have_received" data-rule="required" class="form-control selectpicker" name="row[have_received]"> {foreach name="haveReceivedList" item="vo"} <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Refund status')}:</label> <div class="col-xs-12 col-sm-8"> <select id="c-refund_status" data-rule="required" class="form-control selectpicker" name="row[refund_status]"> {foreach name="RefundStatusList" item="vo"} <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option> {/foreach} </select> </div> </div> <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> <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> </div> </div> </form>