edit.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <form id="edit-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">{:__('Order_sn')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Active_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-active_id" data-rule="required" data-source="active/index" class="form-control selectpage" name="row[active_id]" type="text" value="{$row.active_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <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="{$row.user_id|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Paytype')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-paytype" data-rule="required" class="form-control selectpicker" name="row[paytype]">
  24. {foreach name="paytypeList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.paytype"}selected{/in}>{$vo}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-number" data-rule="required" class="form-control" name="row[number]" type="number" value="{$row.number|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <div class="radio">
  46. {foreach name="statusList" item="vo"}
  47. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  48. {/foreach}
  49. </div>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-transaction_id" data-rule="required" data-source="transaction/index" class="form-control selectpage" name="row[transaction_id]" type="text" value="{$row.transaction_id|htmlentities}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Refund_no')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-refund_no" data-rule="required" class="form-control" name="row[refund_no]" type="text" value="{$row.refund_no|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Refundstatus')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <div class="radio">
  68. {foreach name="refundstatusList" item="vo"}
  69. <label for="row[refundstatus]-{$key}"><input id="row[refundstatus]-{$key}" name="row[refundstatus]" type="radio" value="{$key}" {in name="key" value="$row.refundstatus"}checked{/in} /> {$vo}</label>
  70. {/foreach}
  71. </div>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Refundprice')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-refundprice" data-rule="required" class="form-control" name="row[refundprice]" type="text" value="{$row.refundprice|htmlentities}">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Refundtime')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-refundtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refundtime]" type="text" value="{:$row.refundtime?datetime($row.refundtime):''}">
  84. </div>
  85. </div>
  86. <div class="form-group layer-footer">
  87. <label class="control-label col-xs-12 col-sm-2"></label>
  88. <div class="col-xs-12 col-sm-8">
  89. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  90. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  91. </div>
  92. </div>
  93. </form>