You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

141 lines
6.2 KiB

  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <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="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Out_trade_no')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-out_trade_no" class="form-control" name="row[out_trade_no]" type="text">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Order_price')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-order_price" class="form-control" step="0.01" name="row[order_price]" type="number" value="0.00">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Discount_price')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-discount_price" class="form-control" step="0.01" name="row[discount_price]" type="number">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_price')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-delivery_price" class="form-control" step="0.01" name="row[delivery_price]" type="number">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-total_price" class="form-control" step="0.01" name="row[total_price]" type="number">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  42. {foreach name="payTypeList" item="vo"}
  43. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  44. {/foreach}
  45. </select>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-ip" class="form-control" name="row[ip]" type="text">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-remark" class="form-control" name="row[remark]" type="text">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <div class="radio">
  64. {foreach name="statusList" item="vo"}
  65. <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>
  66. {/foreach}
  67. </div>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Have_paid')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <select id="c-have_paid" data-rule="required" class="form-control selectpicker" name="row[have_paid]">
  74. {foreach name="havePaidList" item="vo"}
  75. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  76. {/foreach}
  77. </select>
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Have_delivered')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <select id="c-have_delivered" data-rule="required" class="form-control selectpicker" name="row[have_delivered]">
  84. {foreach name="haveDeliveredList" item="vo"}
  85. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  86. {/foreach}
  87. </select>
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Have_commented')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <select id="c-have_commented" class="form-control selectpicker" name="row[have_commented]">
  94. {foreach name="haveCommentedList" item="vo"}
  95. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  96. {/foreach}
  97. </select>
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Have_received')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <select id="c-have_received" data-rule="required" class="form-control selectpicker" name="row[have_received]">
  104. {foreach name="haveReceivedList" item="vo"}
  105. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  106. {/foreach}
  107. </select>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Refund status')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <select id="c-refund_status" data-rule="required" class="form-control selectpicker" name="row[refund_status]">
  114. {foreach name="RefundStatusList" item="vo"}
  115. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  116. {/foreach}
  117. </select>
  118. </div>
  119. </div>
  120. <div class="form-group layer-footer">
  121. <label class="control-label col-xs-12 col-sm-2"></label>
  122. <div class="col-xs-12 col-sm-8">
  123. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  124. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  125. </div>
  126. </div>
  127. </form>